19/shaders/skybox.frag

17 lines
278 B
GLSL
Raw Normal View History

2023-06-26 05:53:07 +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;
}