mirror of
https://github.com/ENSL/NS.git
synced 2024-11-14 17:01:29 +00:00
8ab1a69972
- add GLSL postprocessing shader to world view and have it replicate the old gamma ramp - clear framebuffer between frames to fix visual bugs outside map - remove old gamma ramp code (was disabled) and remove gamma adjustments to hud elements as they're now unaffected by the shader - additional visual preset config updates
15 lines
355 B
Text
15 lines
355 B
Text
#version 330 core
|
|
|
|
in vec2 texCoord;
|
|
out vec4 fragColor;
|
|
|
|
uniform sampler2D textureSampler;
|
|
uniform float colorMultiplier; // Uniform float to multiply color by
|
|
|
|
void main() {
|
|
// Sample the texture
|
|
vec4 texColor = texture(textureSampler, texCoord);
|
|
|
|
// Multiply the color by the uniform float
|
|
fragColor = texColor * colorMultiplier;
|
|
}
|