Camera
Variables
Name |
Type |
Description |
---|---|---|
forward |
Math::vec3 |
The camera’s forward vector. |
up |
Math::vec3 |
The camera’s up vector. |
projectionType |
The camera’s projection type. |
|
fov |
float |
The camera’s field of view. Only used by perspective projection cameras. In radians. |
left |
float |
The camera’s left border. Only used by orthographic projection cameras. |
right |
float |
The camera’s right border. Only used by orthographic projection cameras. |
bottom |
float |
The camera’s bottom border. Only used by orthographic projection cameras. |
top |
float |
The camera’s top border. Only used by orthographic projection cameras. |
nearPlane |
float |
The camera’s near plane, which corresponds to the nearest distance from the camera’s position where things are shown. |
farPlane |
float |
The camera’s far plane, which corresponds to the furthest distance from the camera’s position where things are shown. |
Notes
JSON for the .ntsn - Scene scene file format:
Name |
Type |
Description |
Possible values |
||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
camera |
Array of Object |
|