ho3/resources/shaders/texonly.fragment

11 lines
199 B
Plaintext
Raw Permalink Normal View History

2024-06-06 13:25:38 +00:00
uniform sampler2D Texture;
varying vec2 texCoord;
void main()
{
vec4 texColor = texture2D(Texture,texCoord).rgba;
gl_FragColor = vec4(texColor.rgb,gl_FrontMaterial.diffuse.a * texColor.a);
}