Capítulo 220 de 859
Creates a cube texture made up of six images.
true, the texture is flipped along the vertical axis when uploaded to the GPU.const loader = new THREE.CubeTextureLoader();
loader.setPath( 'textures/cube/pisa/' );
const textureCube = loader.load( [
'px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png'
] );
const material = new THREE.MeshBasicMaterial( { color: 0xffffff, envMap: textureCube } );
Constructor
| Signature |
|---|
new CubeTexture( images : Array.<Image>, mapping : number, wrapS : number, wrapT : number, magFilter : number, minFilter : number, format : number, type : number, anisotropy : number, colorSpace : string ) |
Properties
| Property | Description |
|---|---|
.flipY : boolean | If set to true, the texture is flipped along the vertical axis when uploaded to the GPU. |
.images : Array.<Image> | Alias for CubeTexture#image. |
.isCubeTexture : boolean (readonly) | This flag can be used for type testing. |