瀏覽代碼

WebGLBackground: Update comment. (#24474)

Michael Herzog 3 年之前
父節點
當前提交
d80e640a29
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/renderers/webgl/WebGLBackground.js

+ 2 - 2
src/renderers/webgl/WebGLBackground.js

@@ -86,7 +86,7 @@ function WebGLBackground( renderer, cubemaps, state, objects, alpha, premultipli
 
 				};
 
-				// enable code injection for non-built-in material
+				// add "envMap" material property so the renderer can evaluate it like for built-in materials
 				Object.defineProperty( boxMesh.material, 'envMap', {
 
 					get: function () {
@@ -141,7 +141,7 @@ function WebGLBackground( renderer, cubemaps, state, objects, alpha, premultipli
 
 				planeMesh.geometry.deleteAttribute( 'normal' );
 
-				// enable code injection for non-built-in material
+				// add "map" material property so the renderer can evaluate it like for built-in materials
 				Object.defineProperty( planeMesh.material, 'map', {
 
 					get: function () {