Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
glsl::UniversalSurface_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

void main ()
 

Public Attributes

const vec3 _tsE = vec3(0.0, 0.0, 0.0)
 
float backside = (gl_FrontFacing == g3d_InvertY) ? 1.0 : -1.0
 
Point3 csPrevPosition
 
uniform Point2 lowerCoord
 Do not read color attributes (except LAMBERTIAN, if an alpha test is required) outside of this rectangle. More...
 
uniform UniversalMaterial2D material
 
uniform float normalizedIndexOfRefraction
 Index of refraction / 24.0. More...
 
mat4 PreviousProjectToScreenMatrix
 
mat4 ProjectToScreenMatrix
 
const vec3 tan_X = vec3(0.0, 0.0, 0.0)
 
const vec3 tan_Y = vec3(0.0, 0.0, 0.0)
 
in Vector3 tan_Z
 
in Point2 texCoord
 Texture coordinate. More...
 
uniform Point2 upperCoord
 
const vec4 vertexColor = vec4(0.0,0.0,0.0,0.0)
 
in Point3 wsPosition
 

Detailed Description


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

Requires BUFFER_WIDTH_MASK = width - 1 and BUFFER_WIDTH_SHIFT = log_2(width) to be passed, where width is a power of 2.

Member Function Documentation

◆ main()

void glsl::UniversalSurface_gbuffer_pix::main ( void  )
inline

Member Data Documentation

◆ _tsE

const vec3 glsl::UniversalSurface_gbuffer_pix::_tsE = vec3(0.0, 0.0, 0.0)

◆ backside

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

◆ csPrevPosition

Point3 glsl::UniversalSurface_gbuffer_pix::csPrevPosition

◆ lowerCoord

uniform Point2 glsl::UniversalSurface_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.

◆ material

uniform UniversalMaterial2D glsl::UniversalSurface_gbuffer_pix::material

◆ normalizedIndexOfRefraction

uniform float glsl::UniversalSurface_gbuffer_pix::normalizedIndexOfRefraction

Index of refraction / 24.0.

◆ PreviousProjectToScreenMatrix

mat4 glsl::UniversalSurface_gbuffer_pix::PreviousProjectToScreenMatrix

◆ ProjectToScreenMatrix

mat4 glsl::UniversalSurface_gbuffer_pix::ProjectToScreenMatrix

◆ tan_X

const vec3 glsl::UniversalSurface_gbuffer_pix::tan_X = vec3(0.0, 0.0, 0.0)

◆ tan_Y

const vec3 glsl::UniversalSurface_gbuffer_pix::tan_Y = vec3(0.0, 0.0, 0.0)

◆ tan_Z

in Vector3 glsl::UniversalSurface_gbuffer_pix::tan_Z

◆ texCoord

in Point2 glsl::UniversalSurface_gbuffer_pix::texCoord

Texture coordinate.

◆ upperCoord

uniform Point2 glsl::UniversalSurface_gbuffer_pix::upperCoord

◆ vertexColor

const vec4 glsl::UniversalSurface_gbuffer_pix::vertexColor = vec4(0.0,0.0,0.0,0.0)

◆ wsPosition

in Point3 glsl::UniversalSurface_gbuffer_pix::wsPosition

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