CubeTexture
Loads a cube texture into a parent Material. See Texture for more info.
<Box>
<BasicMaterial>
<CubeTexture/>
</BasicMaterial>
</Box>
Props
Name | Description | Type | Default |
---|---|---|---|
path | Path to cube texture. | String | |
urls | URLs to load. | Array | ['px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg'] |
onLoad | Function to fire when all textures have loaded. | Function | |
onProgress | Function to fire on load progress. | Function | |
onError | Function to fire on load error. | Function | |
name | Texture name | String | 'envMap' |
refraction | Whether this material uses refraction mapping or reflection mapping. | Boolean | false |
refractionRatio | The refraction ratio of the material. | Number | 0.98 |