A lot of crazy stuff happened here.....
This commit is contained in:
@@ -65,7 +65,7 @@ void vertex() {
|
||||
void fragment() {
|
||||
vec4 tex = texture(sprite_texture, UV);
|
||||
vec3 hsv = rgb2hsv(tex.rgb);
|
||||
|
||||
|
||||
// the .r here represents HUE, .g is SATURATION, .b is LUMINANCE
|
||||
if (hsv.r >= _min && hsv.r <= _max) {
|
||||
tex = to_gray(tex);
|
||||
|
||||
Reference in New Issue
Block a user