Show / Hide Table of Contents

Class FusCamera

Not yet completely implemented - Projection serialization currently not used. TODO (MR): check with/against blender

Inheritance
System.Object
FusComponent
FusCamera
Implements
IComponent
Inherited Members
FusComponent.Name
FusComponent.Active
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Serialization.V1
Assembly: Fusee.Serialization.dll
Syntax
public class FusCamera : FusComponent, IComponent

Fields

BackgroundColor

The background color for this camera's viewport.

Declaration
public float4 BackgroundColor
Field Value
Type Description
float4

ClearColor

If set to false, the color bit won't be cleared before this camera is rendered.

Declaration
public bool ClearColor
Field Value
Type Description
System.Boolean

ClearDepth

If set to false, the depth bit won't be cleared before this camera is rendered.

Declaration
public bool ClearDepth
Field Value
Type Description
System.Boolean

ClippingPlanes

Distance to the near and far clipping planes.

Declaration
public float2 ClippingPlanes
Field Value
Type Description
float2

Fov

The vertical (y) field of view in radians.

Declaration
public float Fov
Field Value
Type Description
System.Single

Layer

If there is more than one CameraComponent in one scene, the rendered output of the camera with a higher layer will be drawn above the output of a camera with a lower layer.

Declaration
public int Layer
Field Value
Type Description
System.Int32

ProjectionMethod

You can choose from a set of projection methods. This will automatically calculate the correct projection matrix.

Declaration
public ProjectionMethod ProjectionMethod
Field Value
Type Description
ProjectionMethod

Scale

Scales the orthograpic viewing frustum. Dosn't have an effect if Perspective is used.

Declaration
public float Scale
Field Value
Type Description
System.Single

Viewport

The viewport in percent [0, 100]. x: start y: end z: width w: height

Declaration
public float4 Viewport
Field Value
Type Description
float4

Implements

IComponent
Generated by DocFX
GitHub Repo
Back to top