Capítulo 249 de 859
This pass can be used to render a cube texture over the entire screen.
const cubeMap = new THREE.CubeTextureLoader().load( urls );
const cubeTexturePass = new CubeTexturePass( camera, cubemap );
composer.addPass( cubeTexturePass );
Constructor
| Signature |
|---|
new CubeTexturePass( camera : PerspectiveCamera, tCube : CubeTexture, opacity : number ) |
Properties
| Property | Description |
|---|---|
.camera : PerspectiveCamera | The camera. |
.needsSwap : boolean | Overwritten to disable the swap. |
.opacity : number | The opacity. |
.tCube : CubeTexture | The cube texture to render. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever the pass is no longer used in your app. |
.render( renderer : WebGLRenderer, writeBuffer : WebGLRenderTarget, readBuffer : WebGLRenderTarget, deltaTime : number, maskActive : boolean ) | Performs the cube texture pass. |