mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 04:24:29 +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
@@ -2,12 +2,14 @@ uniform sampler2D u_colorTex;
|
||||
uniform sampler2D u_maskTex;
|
||||
uniform float u_opacity;
|
||||
|
||||
varying vec2 v_colorTexCoords;
|
||||
varying vec2 v_maskTexCoords;
|
||||
in vec2 v_colorTexCoords;
|
||||
in vec2 v_maskTexCoords;
|
||||
|
||||
out vec4 v_FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 finalColor = texture2D(u_colorTex, v_colorTexCoords) * texture2D(u_maskTex, v_maskTexCoords);
|
||||
vec4 finalColor = texture(u_colorTex, v_colorTexCoords) * texture(u_maskTex, v_maskTexCoords);
|
||||
finalColor.a *= u_opacity;
|
||||
gl_FragColor = finalColor;
|
||||
v_FragColor = finalColor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user