mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 04:53:09 +00:00
16 lines
No EOL
321 B
GLSL
16 lines
No EOL
321 B
GLSL
#version 330 core
|
|
out vec4 FragColor;
|
|
|
|
in vec3 TexCoords;
|
|
|
|
uniform samplerCube environmentMap;
|
|
|
|
void main()
|
|
{
|
|
vec3 envColor = textureLod(environmentMap, TexCoords, 0.0).rgb;
|
|
|
|
envColor = envColor / (envColor + vec3(1.0));
|
|
envColor = pow(envColor, vec3(1.0/2.2));
|
|
|
|
FragColor = vec4(envColor, 1.0);
|
|
} |