mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
101.74k stars 35.3k forks source link

SphericalReflectionMapping not working? #1090

Closed simonihmig closed 12 years ago

simonihmig commented 12 years ago

Hi there,

I can't seem to get SphericalReflectionMapping to work (as well as LongLat), just CubeMapping seems to work.

This works: var envMap = THREE.ImageUtils.loadTextureCube( urls );

This does not:
var envMap = THREE.ImageUtils.loadTexture(image, new THREE.SphericalReflectionMapping() );

Anything wrong with that code?

The only example I could find with Spherical Mapping in a webgl environment is the webgl_sandbox example: there the lines of code dealing with materials with an spherical environment map are commented out. Removing the comments does not lead to working materials as well...

Thanks for any help! Simon

mrdoob commented 12 years ago

You mean in WebGLRenderer, right? Yeah, it hasn't been implemented yet...

simonihmig commented 12 years ago

Oh, good to know! :) Thanks!