Support Forum       G3D Web Page     
Classes | Namespaces | Macros
Camera.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

struct  glsl::Camera_glsl::Camera
 
Important properties of a G3D::Camera More...
 
class  glsl::Camera_glsl
 Shader program. More...
 

Namespaces

 glsl
 

Macros

#define Camera_glsl
 
#define uniform_Camera(name)
 
Declares frame (CameraToWorld matrix), previousFrame, projectToPixelMatrix, clipInfo, and projInfo. 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

◆ Camera_glsl

#define Camera_glsl

◆ uniform_Camera

#define uniform_Camera (   name)
Value:
uniform mat4x3 name##frame;\
uniform mat4x3 name##previousFrame;\
uniform mat4x4 name##projectToPixelMatrix;\
uniform float3 name##clipInfo;\
uniform ProjInfo name##projInfo;\
uniform float2 name##pixelOffset;\
uniform float name##nearPlaneZ;\
uniform float name##farPlaneZ
#define float3
Definition: compatibility.glsl:67
#define ProjInfo
Definition: reconstructFromDepth.glsl:23
#define float2
Definition: compatibility.glsl:66


Declares frame (CameraToWorld matrix), previousFrame, projectToPixelMatrix, clipInfo, and projInfo.

On the host, invoke Camera::setShaderArgs 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::Camera, G3D::Camera::setShaderArgs, G3D::Args, uniform_GBuffer
Deprecated:

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