|
@@ -63,12 +63,12 @@ scene.background = new THREE.CubeTextureLoader()
|
|
|
Note that, by convention, cube maps are specified in a coordinate system in which positive-x is to the right
|
|
|
when looking up the positive-z axis -- in other words, using a left-handed coordinate system.
|
|
|
Since three.js uses a right-handed coordinate system, environment maps used in three.js will have pos-x and neg-x swapped.<br />
|
|
|
- [page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Texture texture].<br />
|
|
|
- [page:Function onProgress] — Will be called while load progresses. The argument will be the XMLHttpRequest instance, which contains .[page:Integer total] and .[page:Integer loaded] bytes. If the server does not set the Content-Length header; .[page:Integer total] will be 0.<br />
|
|
|
- [page:Function onError] — Will be called when load errors.<br />
|
|
|
+ [page:Function onLoad] (optional) — Will be called when load completes. The argument will be the loaded [page:CubeTexture texture].<br />
|
|
|
+ [page:Function onProgress] (optional) — This callback function is currently not supported.<br />
|
|
|
+ [page:Function onError] (optional) — Will be called when load errors.<br />
|
|
|
</p>
|
|
|
<p>
|
|
|
- Begin loading from url and pass the loaded [page:CubeTexture texture] to onLoad.
|
|
|
+ Begin loading from url and pass the loaded [page:CubeTexture texture] to onLoad. The method also returns a new texture object which can directly be used for material creation.
|
|
|
</p>
|
|
|
|
|
|
<h2>Source</h2>
|