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

Box blur cube fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec3 pos
 Position.
 
uniform uniform vec3 up
 Face vertical vector.
 
uniform vec3 right
 Face horizontal vector.
 
uniform float invHalfSize
 Inverse half size of the sampled texture.
 
out vec4 fragColor
 Color.
 

Detailed Description

Box blur cube fragment shader.

See also
GPUShaders::Common::Utils, GPUShaders::Common::Samplers

Member Function Documentation

◆ main()

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

Approximate box blur for cubemaps, with a similar effect to the 2D versions. This is incorrect as the texel footprint is not taken into account when weighting.


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