18/shaders/skybox.frag

17 lines
278 B
GLSL
Raw Normal View History

2023-06-13 06:46:56 +00:00
#version 420 core
out vec4 FragColor;
in vec3 TexCoords;
uniform samplerCube skybox;
layout(std140, binding = 4) uniform gamma
{
float inv_gamma;
};
void main()
{
FragColor.rgb = pow(texture(skybox, TexCoords).rgb, vec3(inv_gamma));
gl_FragDepth = 0.9999f;
}