Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

cubeCamera

Firtina Ozbalikci edited this page Nov 1, 2015 · 15 revisions

WikiInternal ComponentsObjectsCamerascubeCamera

cubeCamera

Creates a THREE.CubeCamera

Attributes

cubeResolution

number required

name

string: The name property of the camera.

This gets used by <react3/>, <viewport/>, or <cameraHelper>.

position

THREE.Vector3: The position of the 3D object relative to the parent.

rotation

THREE.Euler: The rotation of the 3D object relative to the parent, in euler form.

quaternion

THREE.Quaternion: The rotation of the 3D object relative to the parent, in quaternion form.

scale

THREE.Vector3: The scale of the 3D object relative to the parent.

lookAt

THREE.Vector3: The target position for the 3D object to look at.

This calls THREE.Object3D#lookAt every time the value changes or the position of the object changes.

frustumCulled

bool: Whether the 3D object will be culled by the camera frustum or not.

visible

bool: Whether the 3D object will be visible or not.

renderOrder

number: The render order override for the 3D object.

castShadow

bool: Whether the 3D object will cast shadows or not.

receiveShadow

bool: Whether the 3D object will receive shadows or not.

WARNING: This will trigger a refresh for any materials the object is using.

WARNING: If you use the same material for multiple objects and some of them receive shadows and some do not, it may cause adverse side effects. In that case, it is recommended to use different materials.

near

number: The near clipping distance.

far

number: The far clipping distance.

===

View Source
Clone this wiki locally