Fix grayscale shader to gles 3
This commit is contained in:
@ -575,10 +575,12 @@ in
|
|||||||
/*
|
/*
|
||||||
* Grayscale
|
* Grayscale
|
||||||
*/
|
*/
|
||||||
|
#version 300 es
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
varying vec2 v_texcoord;
|
in vec2 v_texcoord;
|
||||||
uniform sampler2D tex;
|
uniform sampler2D tex;
|
||||||
|
out vec4 fragColor;
|
||||||
|
|
||||||
// Enum for type of grayscale conversion
|
// Enum for type of grayscale conversion
|
||||||
const int LUMINOSITY = 0;
|
const int LUMINOSITY = 0;
|
||||||
@ -623,7 +625,7 @@ in
|
|||||||
}
|
}
|
||||||
vec3 grayscale = vec3(gray);
|
vec3 grayscale = vec3(gray);
|
||||||
|
|
||||||
gl_FragColor = vec4(grayscale, pixColor.a);
|
fragColor = vec4(grayscale, pixColor.a);
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
home.file.".config/ashell/config.toml".text = ''
|
home.file.".config/ashell/config.toml".text = ''
|
||||||
|
Reference in New Issue
Block a user