mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 20:03:45 +00:00
Refactor shaders to use GLES3 syntax
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b23c2ba3e3
commit
897d7a253d
@@ -1,10 +1,12 @@
|
||||
varying vec2 v_texCoords;
|
||||
varying vec4 v_color;
|
||||
in vec2 v_texCoords;
|
||||
in vec4 v_color;
|
||||
|
||||
uniform sampler2D u_colorTex;
|
||||
|
||||
out vec4 v_FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
LOW_P vec4 color = texture2D(u_colorTex, v_texCoords);
|
||||
gl_FragColor = color * v_color;
|
||||
LOW_P vec4 color = texture(u_colorTex, v_texCoords);
|
||||
v_FragColor = color * v_color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user