Image display fragment shader.
More...
|
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.
|
|
Image display fragment shader.
- See also
- GPUShaders::Common::Samplers
◆ gamma()
vec3 GPUShaders::Frag::Image_display::gamma |
( |
vec3 |
color | ) |
|
|
inline |
Apply a standard gamma correction.
- Parameters
-
color | the 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
-
hdrColor | input HDR color |
exposure | the current image overall exposure |
- Returns
- the LDR color
The documentation for this class was generated from the following file:
- resources/imageviewer/shaders/image_display.frag