grafika_komputerowa/grk/project/shaders/shader_8_sun.frag
2024-02-05 22:22:25 +01:00

15 lines
311 B
GLSL

#version 430 core
uniform vec3 color;
uniform float exposition;
uniform sampler2D sunTexture;
in vec2 TexCoords;
out vec4 outColor;
void main()
{
vec4 texColor = texture(sunTexture, TexCoords);
vec3 brightColor = texColor.rgb * 4.0;
outColor = vec4(vec3(1.0) - exp(-brightColor*exposition),texColor.a);
}