Prechádzať zdrojové kódy

CubeCamera: Add comment to clarify mipmap generation. (#26772)

Michael Herzog 1 rok pred
rodič
commit
c6cfa6a6c1
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      src/cameras/CubeCamera.js

+ 3 - 0
src/cameras/CubeCamera.js

@@ -149,6 +149,9 @@ class CubeCamera extends Object3D {
 		renderer.setRenderTarget( renderTarget, 4 );
 		renderer.render( scene, cameraPZ );
 
+		// mipmaps are generated during the last call of render()
+		// at this point, all sides of the cube render target are defined
+
 		renderTarget.texture.generateMipmaps = generateMipmaps;
 
 		renderer.setRenderTarget( renderTarget, 5 );