SQCSimulator2023/SQCSim2021/media/shaders/shader01.frag

14 lines
200 B
GLSL
Raw Normal View History

2021-10-11 11:37:58 -04:00
uniform sampler2D tex;
varying vec4 light;
void main()
{
vec4 texel;
texel = texture2D(tex,gl_TexCoord[0].st);
texel *= light;
2021-10-19 10:27:59 -04:00
texel.a *= gl_Position.z;
2021-10-11 11:37:58 -04:00
gl_FragColor = texel;
}