Three.js, custom light geometry

允我心安 提交于 2019-12-06 12:54:30

AreaLight works only with WebGLDeferredRenderer, which is quite new, part of the examples (not the library), and there are not a lot of examples of it's use.

If you look at this example, you can see a movie texture is used as a light source.

In this example, you can substitute another texture for the video texture like so:

// texture = new THREE.Texture( video );
texture = THREE.ImageUtils.loadTexture( "texture.jpg" );

Unfortunately, this example is using a modified version of the library.

three.js r.56

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!