mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-18 10:11:40 +00:00
14 lines
300 B
GLSL
14 lines
300 B
GLSL
|
|
in vec2 TexCoord;
|
|
out vec4 FragColor;
|
|
|
|
uniform sampler2D SceneTexture;
|
|
uniform float ExposureAdjustment;
|
|
uniform vec2 Scale;
|
|
uniform vec2 Offset;
|
|
|
|
void main()
|
|
{
|
|
vec4 color = texture(SceneTexture, Offset + TexCoord * Scale);
|
|
FragColor = max(vec4(color.rgb * ExposureAdjustment - 1, 1), vec4(0));
|
|
}
|