mirror of
https://github.com/ENSL/NS.git
synced 2024-11-23 04:52:15 +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
10 lines
300 B
Text
10 lines
300 B
Text
#version 330 core
|
|
|
|
layout(location = 0) in vec2 vertexPosition;
|
|
out vec2 texCoord;
|
|
|
|
void main() {
|
|
// Pass the vertex position to the fragment shader
|
|
texCoord = (vertexPosition + 1.0) * 0.5; // Convert vertex position to texture coordinates
|
|
gl_Position = vec4(vertexPosition, 0.0, 1.0);
|
|
}
|