Constructor
new BasicCamera(parameters)
- Source:
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
parameters |
Object | the parameters of the camera. These parameters are
|
Classes
Members
aspect
- Source:
Shortcut to reset the aspect of the underlying Three.js camera
fov :number
- Source:
Shortcut to access the field of view of the underlying Three.js camera (Recall that in Three.js the field of view is the vertical one.)
Type:
- number
fov
Shortcut to reset the field of view of the underlying Three.js camera (Recall that in Three.js the field of view is the vertical one.)
matrix :Matrix4
Matrix of the underlying Three.js camera in the virtual euclidean scene
Type:
maxDist :number
- Source:
Maximal distance we ray-march
Type:
- number
maxSteps :number
- Source:
Maximal number of steps during the ray-marching
Type:
- number
minDist :number
- Source:
Minimal distance we ray-march
Type:
- number
position :RelPosition
- Source:
Position of the camera
Type:
threeCamera :PerspectiveCamera
- Source:
The underlying Three.js camera
Type:
- PerspectiveCamera
threshold :number
- Source:
Threshold to stop the ray-marching
Type:
- number
Methods
shader(shaderBuilder)
build the GLSL code needed to declare the camera
Parameters:
Name | Type | Description |
---|---|---|
shaderBuilder |
ShaderBuilder | the shader builder |
updateProjectionMatrix()
Shortcut to update the projection matrix of the underlying Three.js camera