Cubyz/assets/cubyz/shaders/deferred_render_pass.fs
IntegratedQuantum 840d62177c Switch to f16 frame buffers in preparation for volumetric fog.
Also display some performance data using OpenGL's queries.
2023-08-21 09:41:41 +02:00

12 lines
255 B
GLSL

#version 430
out vec4 fragColor;
in vec2 texCoords;
uniform sampler2D color;
void main() {
fragColor = texture(color, texCoords);
float maxColor = max(1.0, max(fragColor.r, max(fragColor.g, fragColor.b)));
fragColor.rgb = fragColor.rgb/maxColor;
}