Render
state
wrapper
for
Tinman.Camera.inc
.
sealed class
|
CameraState
|
public
readonly
field
|
CameraDirection
|
||
type
|
IShaderParameter
|
public
readonly
field
|
CameraPosition
|
||
type
|
IShaderParameter
|
public
readonly
field
|
CameraPositionExtra
|
||
type
|
IShaderParameter
|
public
readonly
field
|
LockedCameraDirection
|
||
type
|
IShaderParameter
|
public
readonly
field
|
LockedCameraPosition
|
||
type
|
IShaderParameter
|
public
readonly
field
|
LockedCameraPositionExtra
|
||
type
|
IShaderParameter
|
public
readonly
field
|
ViewProjectionFar
|
||
type
|
IShaderParameter
|
public
readonly
field
|
ViewProjectionMatrix
|
||
type
|
IShaderParameter
|
public
readonly
field
|
ViewProjectionMatrixI
|
||
type
|
IShaderParameter
|
Creates a new instance of CameraState.
public
constructor
|
CameraState
(IShaderEffect effect)
|
||
params
|
effect
|
[not-null]
|
The shader effect. |
Sets the camera state, using the values of the given ShadowMapping object.
public
method
|
Set
(ShadowMapping shadowMapping,
int32 cascade)
|
||
params
|
shadowMapping
|
[not-null]
|
The ShadowMapping object to read state values from. |
cascade
|
[0..shadowMapping.CascadeCount-1]
|
The shadow cascade that is being rendered. |
Remarks:
The following parameters are updated by this method:
Sets the camera state, using the values of the given CameraViewport object.
public
method
|
Set
(CameraViewport viewport,
bool local = true)
|
||
params
|
viewport
|
[not-null]
|
The CameraViewport object to read state values from. |
local
|
Use
local
view
matrix
(true )
or
regular
one
(false )?
Defaults
to
true .
|
Remarks:
The following parameters are updated by this method:
See also:
CameraViewport.MatrixViewSets the camera state, using the values of the given Camera object.
public
method
|
Set
(Camera camera,
bool isLocked = false)
|
||
params
|
camera
|
[not-null]
|
The Camera object to read state values from. |
isLocked
|
Retain
locked
camera
state
(true )
or
also
update
locked
camera
state
(false
)?
Defaults
to
false .
|
Remarks:
The following parameters are updated by this method:
These parameters are updated if isLocked isfalse
:
See also:
CameraViewport.MatrixViewSets the camera state, using the values of the given CameraPosition object.
public
method
|
Set
(CameraInfo cameraInfo,
bool isLocked = false)
|
||
params
|
cameraInfo
|
[not-null]
|
The CameraPosition object to read state values from. |
isLocked
|
Retain
locked
camera
state
(true )
or
also
update
locked
camera
state
(false
)?
Defaults
to
false .
|
Remarks:
The following parameters are updated by this method:
These parameters are updated if isLocked isfalse
:
See also:
CameraViewport.MatrixView