2024-01-02 20:54:56 +01:00
|
|
|
#version 430 core
|
|
|
|
|
|
|
|
uniform vec3 color;
|
|
|
|
uniform float exposition;
|
|
|
|
|
2024-02-05 22:22:25 +01:00
|
|
|
uniform sampler2D sunTexture;
|
|
|
|
in vec2 TexCoords;
|
2024-01-02 20:54:56 +01:00
|
|
|
|
|
|
|
out vec4 outColor;
|
|
|
|
void main()
|
2024-02-05 22:22:25 +01:00
|
|
|
{
|
|
|
|
vec4 texColor = texture(sunTexture, TexCoords);
|
|
|
|
vec3 brightColor = texColor.rgb * 4.0;
|
|
|
|
outColor = vec4(vec3(1.0) - exp(-brightColor*exposition),texColor.a);
|
|
|
|
}
|