CameraParameters
Description
- Derived from
-
RenderEffectParameters abstract
Shared render effect parameters for the scene camera.
The following low-level render effect parameter slots are always defined:
-
'g_viewProjectionMatrix', RenderEffectParameterType.Matrix4x4 [2], mapped to:
#0: ViewProjectionMatrix
#1: ViewProjectionMatrixInverse
The following low-level render effect parameter slots are omitted if FlagNoCamera is present:
-
'g_camera', RenderEffectParameterType.Vector3 [6], mapped to:
#0: Position, return of Vec.To3F_Delta3
#1: Position, output of Vec.To3F_Delta3
#2: Direction
#3: PositionLocked, return of Vec.To3F_Delta3
#4: PositionLocked, output of Vec.To3F_Delta3
#5: DirectionLocked
The following low-level render effect parameter slots are omitted if FlagNoFar is present:
-
'g_viewProjectionFar', RenderEffectParameterType.Float, mapped to
log2(1 + far)
, wherefar
is the value of ViewProjectionFar.
Public / Constants
Public / Methods
Set
4 overloads
Sets the camera state, using the values of the given ShadowMapping object.
The following parameters are updated by this method:
Sets the camera state, using the values of the given CameraViewport object.
The following parameters are updated by this method:
Sets the camera state, using the values of the given Camera object.
The following parameters are updated by this method:
These parameters are updated if isLocked opt is false
:
Sets the camera state, using the values of the given CameraInfo object.
The following parameters are updated by this method:
These parameters are updated if isLocked opt is false
:
Public / Attributes
ViewProjectionMatrixInverse
Inverse view-projection matrix, centered at camera.
Defaults to Mat4F.Zero.