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

14 lines
247 B
GLSL

#version 430 core
uniform samplerCube skybox;
uniform vec3 lightColor;
in vec3 texCoord;
out vec4 out_color;
void main()
{
vec4 textureColor = texture(skybox, texCoord);
out_color = vec4(vec3(textureColor) * lightColor * 0.3f, 1.0f);
}