wiki.sine.space | sinespace

Scripting/SCamera

From wiki.sine.space
Revision as of 14:44, 25 December 2020 by Voidtech (Talk | contribs) (Added and defined all members (13) in SCamera)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Members

TakePhoto

void TakePhoto ()

Triggers the Photo window in the UI, with the output of this camera. Perfect for photo booths.


TakeSnapshot

SResource TakeSnapshot ()

Captures a texture from the camera, and saves it in a SResource



Properties

Enabled

bool Enabled { get; set; }

Is this camera enabled?


FarClip

float FarClip { get; set; }

How far is an object from the camera plane before it is not rendered?


FieldOfView

float FieldOfView { get; set; }

The field of view of the camera, in typical scenarios, Sinespace uses a value of 52; however Unity will default to 60.


HDR

bool HDR { get; set; }

Can this camera write HDR values? (i.e. values brighter than 1.0)


NearClip

float NearClip { get; set; }

How close can an object be to the camera plane before it is not rendered?


Orthographic

bool Orthographic { get; set; }

Does this camera render without perspective?


OrthographicSize

float OrthographicSize { get; set; }

The width of the camera when in Orthographic mode. Height will be adjusted based on aspect ratio of the Render Texture


PixelHeight

int PixelHeight { get; }

The height of this Camera's texture in pixels



PixelWidth

int PixelWidth { get; }

The width of this Camera's texture, in pixels


UseOcclusionCulling

bool UseOcclusionCulling { get; set;}

Is Occlusion Culling enabled on this camera?


Velocity

SVector Velocity { get; }

World space speed of this camera, typically used for motion blur.