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


This shader expects a prefix (GBuffer::macros() or SVO::macros()) to be attached at runtime using Shader::setPremable. More...

Public Member Functions

 layout (depth_greater) out float gl_FragDepth
 
 layout (location=0) in vec2 texCoord
 Texture coordinate. More...
 
 layout (location=10) in vec4 vertexColor
 
void main ()
 

Public Attributes

float backside = (gl_FrontFacing == g3d_InvertY) ? 1.0 : -1.0
 
Point3 csPrevPosition
 
uniform vec2 lowerCoord
 Do not read color attributes (except LAMBERTIAN, if an alpha test is required) outside of this rectangle. More...
 
mat4 PreviousProjectToScreenMatrix
 
mat4 ProjectToScreenMatrix
 
uniform vec2 upperCoord
 
flat in float voxelCoverage
 
flat in Color3 voxelLambertian
 

Detailed Description


This shader expects a prefix (GBuffer::macros() or SVO::macros()) to be attached at runtime using Shader::setPremable.

Member Function Documentation

◆ layout() [1/3]

glsl::VoxelSurface_gbuffer_pix::layout ( depth_greater  )

◆ layout() [2/3]

glsl::VoxelSurface_gbuffer_pix::layout ( location  = 0)

Texture coordinate.

◆ layout() [3/3]

glsl::VoxelSurface_gbuffer_pix::layout ( location  = 10)

◆ main()

void glsl::VoxelSurface_gbuffer_pix::main ( void  )
inline

Member Data Documentation

◆ backside

float glsl::VoxelSurface_gbuffer_pix::backside = (gl_FrontFacing == g3d_InvertY) ? 1.0 : -1.0

◆ csPrevPosition

Point3 glsl::VoxelSurface_gbuffer_pix::csPrevPosition

◆ lowerCoord

uniform vec2 glsl::VoxelSurface_gbuffer_pix::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.

◆ PreviousProjectToScreenMatrix

mat4 glsl::VoxelSurface_gbuffer_pix::PreviousProjectToScreenMatrix

◆ ProjectToScreenMatrix

mat4 glsl::VoxelSurface_gbuffer_pix::ProjectToScreenMatrix

◆ upperCoord

uniform vec2 glsl::VoxelSurface_gbuffer_pix::upperCoord

◆ voxelCoverage

flat in float glsl::VoxelSurface_gbuffer_pix::voxelCoverage

◆ voxelLambertian

flat in Color3 glsl::VoxelSurface_gbuffer_pix::voxelLambertian

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