提交 b4895fbd 编写于 作者: M Mr.doob

Implemented @WestLangley for normalMap + envMap case. Fixes #4517.

上级 797c414a
......@@ -700,7 +700,7 @@ THREE.ShaderChunk = {
lights_phong_pars_vertex: [
"#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP )",
"#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP ) || defined( USE_ENVMAP )",
" varying vec3 vWorldPosition;",
......@@ -711,7 +711,7 @@ THREE.ShaderChunk = {
lights_phong_vertex: [
"#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP )",
"#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP ) || defined( USE_ENVMAP )",
" vWorldPosition = worldPosition.xyz;",
......@@ -759,7 +759,7 @@ THREE.ShaderChunk = {
"#endif",
"#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP )",
"#if MAX_SPOT_LIGHTS > 0 || defined( USE_BUMPMAP ) || defined( USE_ENVMAP )",
" varying vec3 vWorldPosition;",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册