PlanetEditor/grk/cw 6/shaders/shader_sun.frag

20 lines
324 B
GLSL

#version 430 core
float AMBIENT = 0.1;
uniform vec3 lightPos;
uniform vec3 lightColor;
in vec3 vecNormal;
in vec3 worldPos;
in vec2 vtc;
out vec4 outColor;
uniform sampler2D colorTexture;
void main()
{
vec4 textureColor = texture2D(colorTexture, vtc);
outColor = vec4(vec3(textureColor) * lightColor * 0.15f, 1.0);
}