Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
glsl::GBuffer2_glsl Class Reference


For use with G3D::Shader. More...

Public Member Functions

ivec3 gbufferCoordsHelper (ivec3 coords)
 
ivec3 gbufferCoordsHelper (ivec2 coords)
 
ivec3 gbufferCoordsHelper (int coords)
 
vec3 gbufferCoordsHelper (vec3 coords)
 
vec3 gbufferCoordsHelper (vec2 coords)
 
vec4 gbufferWriteValueHelper (vec4 val)
 
vec4 gbufferWriteValueHelper (vec3 val)
 
vec4 gbufferWriteValueHelper (vec2 val)
 
vec4 gbufferWriteValueHelper (float val)
 

Public Attributes

uniform vec2 lowerCoord
 Do not read color attributes (except LAMBERTIAN, if an alpha test is required) outside of this rectangle. More...
 
uniform vec2 upperCoord
 

Detailed Description


For use with G3D::Shader.

This files define helper functions for manipulating GBuffers.

See also
G3D::SVO

Member Function Documentation

◆ gbufferCoordsHelper() [1/5]

ivec3 glsl::GBuffer2_glsl::gbufferCoordsHelper ( ivec3  coords)
inline

◆ gbufferCoordsHelper() [2/5]

ivec3 glsl::GBuffer2_glsl::gbufferCoordsHelper ( ivec2  coords)
inline

◆ gbufferCoordsHelper() [3/5]

ivec3 glsl::GBuffer2_glsl::gbufferCoordsHelper ( int  coords)
inline

◆ gbufferCoordsHelper() [4/5]

vec3 glsl::GBuffer2_glsl::gbufferCoordsHelper ( vec3  coords)
inline

◆ gbufferCoordsHelper() [5/5]

vec3 glsl::GBuffer2_glsl::gbufferCoordsHelper ( vec2  coords)
inline

◆ gbufferWriteValueHelper() [1/4]

vec4 glsl::GBuffer2_glsl::gbufferWriteValueHelper ( vec4  val)
inline

◆ gbufferWriteValueHelper() [2/4]

vec4 glsl::GBuffer2_glsl::gbufferWriteValueHelper ( vec3  val)
inline

◆ gbufferWriteValueHelper() [3/4]

vec4 glsl::GBuffer2_glsl::gbufferWriteValueHelper ( vec2  val)
inline

◆ gbufferWriteValueHelper() [4/4]

vec4 glsl::GBuffer2_glsl::gbufferWriteValueHelper ( float  val)
inline

Member Data Documentation

◆ lowerCoord

uniform vec2 glsl::GBuffer2_glsl::lowerCoord

Do not read color attributes (except LAMBERTIAN, if an alpha test is required) outside of this rectangle.

Used to implement the trim band outside of which only depth is recorded.

◆ upperCoord

uniform vec2 glsl::GBuffer2_glsl::upperCoord

documentation generated on Wed Nov 24 2021 08:02:04 using doxygen 1.8.15