13 lines
225 B
GLSL
13 lines
225 B
GLSL
#version 430 core
|
|
|
|
out vec4 FragColor;
|
|
in vec2 fragUV;
|
|
in float lighting;
|
|
|
|
uniform sampler2D uTexture;
|
|
|
|
void main()
|
|
{
|
|
vec4 texColor = texture(uTexture, fragUV);
|
|
FragColor = vec4(texColor.rgb * lighting, texColor.a);
|
|
} |