Path Tracing
Loading...
Searching...
No Matches
display.frag File Reference

Screen Display Fragment Shader. More...

#include "globals.glsl"
Include dependency graph for display.frag:

Functions

vec3 uncharted2TonemapPartial (vec3 x)
 Filmic is the Hable/Uncharted2 curves (John Hable, GDC 2010).
vec3 uncharted2Filmic (vec3 color)
vec3 toneMap (vec3 color)
void main ()

Variables

in vec2 vUV
out vec4 frag_color
uniform sampler2D tex
uniform vec2 render_resolution
uniform vec2 display_resolution

Detailed Description

Screen Display Fragment Shader.

Author
Leonel Matos
Date
2026-03-24

Function Documentation

◆ main()

void main ( void )

◆ toneMap()

vec3 toneMap ( vec3 color)

◆ uncharted2Filmic()

vec3 uncharted2Filmic ( vec3 color)

◆ uncharted2TonemapPartial()

vec3 uncharted2TonemapPartial ( vec3 x)

Filmic is the Hable/Uncharted2 curves (John Hable, GDC 2010).

Variable Documentation

◆ display_resolution

uniform vec2 display_resolution

◆ frag_color

out vec4 frag_color

◆ render_resolution

uniform vec2 render_resolution

◆ tex

uniform sampler2D tex

◆ vUV

in vec2 vUV