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

20 lines
324 B
GLSL
Raw Normal View History

2023-12-18 16:15:08 +01:00
#version 430 core
float AMBIENT = 0.1;
uniform vec3 lightPos;
2024-01-21 13:34:33 +01:00
uniform vec3 lightColor;
2023-12-18 16:15:08 +01:00
in vec3 vecNormal;
in vec3 worldPos;
2024-01-14 19:42:19 +01:00
in vec2 vtc;
2024-01-17 22:01:14 +01:00
2023-12-18 16:15:08 +01:00
out vec4 outColor;
uniform sampler2D colorTexture;
void main()
{
2024-01-14 19:42:19 +01:00
vec4 textureColor = texture2D(colorTexture, vtc);
outColor = vec4(vec3(textureColor) * lightColor * 0.15f, 1.0);
2024-01-17 22:01:14 +01:00
}