Explorar o código

WebGLBackground: Comments clean up.

Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
44ccad2b32
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/renderers/webgl/WebGLBackground.js

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

@@ -46,6 +46,8 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
 
 			if ( boxMesh === undefined ) {
 
+				// TODO Adjust skybox to camera somehow
+
 				boxMesh = new Mesh(
 					new BoxBufferGeometry( 5, 5, 5 ),
 					new ShaderMaterial( {
@@ -68,10 +70,9 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
 
 			renderList.push( boxMesh, boxMesh.geometry, boxMesh.material, 0, null );
 
-			// TOFIX Hack to make sure background gets rendered first
 			// TOFIX Ideally background should be rendered last
 
-			renderList.opaque.unshift( renderList.opaque.pop() );
+			renderList.opaque.unshift( renderList.opaque.pop() ); // Hack to make sure background gets rendered first
 
 		} else if ( background && background.isTexture ) {