Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::Frag::Image_display Class Reference

Image display fragment shader. More...

Public Member Functions

vec3 simpleExposure (vec3 hdrColor, float exposure)
 
vec3 gamma (vec3 color)
 
void main ()
 

Public Attributes

in vec2 uv
 Texture coordinates.
 
uniform uniform vec4 channelsFilter
 Which channels should be displayed.
 
uniform float exposure
 User selected exposure.
 
uniform bool gammaOutput
 Should gamma correction be applied.
 
uniform bool filtering
 Should linear interpolation be applied.
 
uniform bool isHDR
 Is the image an HDR one.
 
out vec4 fragColor
 Color.
 

Detailed Description

Image display fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ gamma()

vec3 GPUShaders::Frag::Image_display::gamma ( vec3  color)
inline

Apply a standard gamma correction.

Parameters
colorthe color to correct
Returns
gamma correct color for screens

◆ main()

void GPUShaders::Frag::Image_display::main ( )
inline

Render the image, applying user-defined postprocessing.

◆ simpleExposure()

vec3 GPUShaders::Frag::Image_display::simpleExposure ( vec3  hdrColor,
float  exposure 
)
inline

Simple exposure-based tonemapping operator.

Parameters
hdrColorinput HDR color
exposurethe current image overall exposure
Returns
the LDR color

The documentation for this class was generated from the following file: