TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class CameraState in Tinman.AddOns.Shaders

Render state wrapper for Tinman.Camera.inc.

sealed class CameraState  

Public / Attributes

CameraDirection

public readonly field CameraDirection
type IShaderParameter

CameraPosition

public readonly field CameraPosition
type IShaderParameter

CameraPositionExtra

public readonly field CameraPositionExtra
type IShaderParameter

LockedCameraDirection

public readonly field LockedCameraDirection
type IShaderParameter

LockedCameraPosition

public readonly field LockedCameraPosition
type IShaderParameter

LockedCameraPositionExtra

public readonly field LockedCameraPositionExtra
type IShaderParameter

ViewProjectionFar

public readonly field ViewProjectionFar
type IShaderParameter

ViewProjectionMatrix

public readonly field ViewProjectionMatrix
type IShaderParameter

ViewProjectionMatrixI

public readonly field ViewProjectionMatrixI
type IShaderParameter

Public / Constructors

CameraState

Creates a new instance of CameraState.

public constructor CameraState (IShaderEffect effect)
params effect [not-null] The shader effect.

Public / Methods

Set

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.MatrixView
CameraViewport.MatrixViewLocal

Sets 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 is false:

See also:

CameraViewport.MatrixView
CameraViewport.MatrixViewLocal

Sets 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 is false:

See also:

CameraViewport.MatrixView
CameraViewport.MatrixViewLocal