mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 03:43:46 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
11
libs/shaders/GL/texturing.fsh.glsl
Normal file
11
libs/shaders/GL/texturing.fsh.glsl
Normal file
@@ -0,0 +1,11 @@
|
||||
uniform sampler2D u_colorTex;
|
||||
uniform float u_opacity;
|
||||
|
||||
varying vec2 v_colorTexCoords;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 finalColor = texture2D(u_colorTex, v_colorTexCoords);
|
||||
finalColor.a *= u_opacity;
|
||||
gl_FragColor = finalColor;
|
||||
}
|
||||
Reference in New Issue
Block a user