G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.
More...
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.
◆ 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
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
-
name | Include the underscore suffix, if a name is desired |
- See also
- G3D::Camera, G3D::Camera::setShaderArgs, G3D::Args, uniform_GBuffer
- Deprecated: