14 lines
197 B
GLSL
14 lines
197 B
GLSL
#version 330 core
|
|
in vec2 vUv;
|
|
in float vShade;
|
|
|
|
out vec4 FragColor;
|
|
|
|
uniform sampler2D atlas;
|
|
|
|
void main()
|
|
{
|
|
vec4 texel = texture(atlas, vUv);
|
|
FragColor = vec4(texel.rgb * vShade, 1.0);
|
|
}
|