Support Forum       G3D Web Page     
Classes | Namespaces | Macros
GBuffer.glsl File Reference

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...

Classes

class  glsl::GBuffer_glsl
 Shader program. More...
 

Namespaces

 glsl
 

Macros

#define GBuffer_glsl
 
#define uniform_GBuffer(name)
 
Declares all uniforms needed to read all fields of the GBuffer. More...
 

Detailed Description

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.

Macro Definition Documentation

◆ GBuffer_glsl

#define GBuffer_glsl

◆ uniform_GBuffer

#define uniform_GBuffer (   name)
Value:
uniform_Texture(sampler2D, name##LAMBERTIAN_);\
uniform_Texture(sampler2D, name##GLOSSY_);\
uniform_Texture(sampler2D, name##EMISSIVE_);\
uniform_Texture(sampler2D, name##WS_NORMAL_);\
uniform_Texture(sampler2D, name##CS_NORMAL_);\
uniform_Texture(sampler2D, name##WS_FACE_NORMAL_);\
uniform_Texture(sampler2D, name##CS_FACE_NORMAL_);\
uniform_Texture(sampler2D, name##CS_POSITION_);\
uniform_Texture(sampler2D, name##WS_POSITION_);\
uniform_Texture(sampler2D, name##CS_POSITION_CHANGE_);\
uniform_Texture(sampler2D, name##SS_POSITION_CHANGE_);\
uniform_Texture(sampler2D, name##CS_Z_);\
uniform_Texture(sampler2D, name##DEPTH_);\
uniform_Texture(sampler2D, name##TS_NORMAL_);\
uniform_Texture(sampler2D, name##SVO_POSITION_);\
uniform_Texture(sampler2D, name##TEXCOORD0_);\
uniform_Camera(name##camera_)
#define uniform_Texture(samplerType, name)
Declares a uniform sampler and the float4 readMultiplyFirst and readAddSecond variables.
Definition: Texture.glsl:39


Declares all uniforms needed to read all fields of the GBuffer.

On the host, invoke GBuffer::setShaderReadArgs to pass these values. Unused variables in the device shader will be removed by the compiler.

Parameters
nameInclude the underscore suffix, if a name is desired
See also
G3D::GBuffer, G3D::GBuffer::setShaderArgsRead, G3D::Args, uniform_Texture

documentation generated on Wed Nov 24 2021 08:01:50 using doxygen 1.8.15