提交 25a138a9 编写于 作者: W WestLangley

Texture is a map, not an envMap

上级 8409f9f5
......@@ -8,7 +8,7 @@ void main() {
vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
gl_FragColor = envMapTexelToLinear( texColor );
gl_FragColor = mapTexelToLinear( texColor );
gl_FragColor.a *= opacity;
#include <tonemapping_fragment>
......
......@@ -68,7 +68,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
};
// enable code injection for non-built-in material
Object.defineProperty( boxMesh.material, 'envMap', {
Object.defineProperty( boxMesh.material, 'map', {
get: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册