public final class CubeCamera extends Object3D
Based on three.js code.
Object3D.ObjectHandler, Object3D.Traverse
__webglActive, __webglInit, _modelViewMatrix, _normalMatrix, DefaultUp
Constructor and Description |
---|
CubeCamera(double near,
double far,
int cubeResolution)
Constructs a CubeCamera that contains 6
PerspectiveCamera s that then render to a RenderTargetCubeTexture |
Modifier and Type | Method and Description |
---|---|
RenderTargetCubeTexture |
getRenderTarget()
The cube texture that gets generated.
|
void |
updateCubeMap(WebGLRenderer renderer,
Scene scene)
Call this to update the renderTarget.
|
add, add, applyMatrix, clone, clone, clone, getChildren, getChildrenByClass, getId, getMatrix, getMatrixWorld, getName, getObjectById, getObjectByName, getParent, getPosition, getQuaternion, getRenderDepth, getRotation, getScale, getUp, getWorldDirection, getWorldDirection, getWorldPosition, getWorldPosition, getWorldQuaternion, getWorldQuaternion, getWorldRotation, getWorldRotation, getWorldScale, getWorldScale, isCastShadow, isFrustumCulled, isMatrixAutoUpdate, isMatrixWorldNeedsUpdate, isReceiveShadow, isRotationAutoUpdate, isVisible, localToWorld, lookAt, remove, remove, rotateOnAxis, rotateX, rotateY, rotateZ, setCastShadow, setChildren, setFrustumCulled, setHandler, setMatrix, setMatrixAutoUpdate, setMatrixWorld, setMatrixWorldNeedsUpdate, setName, setParent, setPosition, setQuaternion, setReceiveShadow, setRenderDepth, setRotation, setRotationAutoUpdate, setRotationFromAxisAngle, setRotationFromEuler, setRotationFromMatrix, setRotationFromQuaternion, setScale, setUp, setVisible, toString, translateOnAxis, translateX, translateY, translateZ, traverse, traverseVisible, updateMatrix, updateMatrixWorld, worldToLocal
public CubeCamera(double near, double far, int cubeResolution)
PerspectiveCamera
s that then render to a RenderTargetCubeTexture
near
- The near clipping distance.far
- The far clipping distancecubeResolution
- Sets the width of the cube.public RenderTargetCubeTexture getRenderTarget()
public void updateCubeMap(WebGLRenderer renderer, Scene scene)
renderer
- The current WebGL rendererscene
- The current scene