Files
utad-3d/data/shaders/fragment.glsl
2025-10-13 18:23:01 +02:00

13 lines
247 B
GLSL

uniform int useTexture;
uniform sampler2D texSampler;
varying vec3 fcolor;
varying vec2 ftexcoord;
void main() {
if (useTexture == 1) {
gl_FragColor = texture2D(texSampler, ftexcoord);
} else {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
}