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

14 lines
247 B
GLSL
Raw Normal View History

2024-01-21 13:34:33 +01:00
#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);
2024-01-21 13:34:33 +01:00
}