Skip to content

Commit c6cfa6a

Browse files
authored
CubeCamera: Add comment to clarify mipmap generation. (#26772)
1 parent 51462bf commit c6cfa6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cameras/CubeCamera.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ class CubeCamera extends Object3D {
149149
renderer.setRenderTarget( renderTarget, 4 );
150150
renderer.render( scene, cameraPZ );
151151

152+
// mipmaps are generated during the last call of render()
153+
// at this point, all sides of the cube render target are defined
154+
152155
renderTarget.texture.generateMipmaps = generateMipmaps;
153156

154157
renderer.setRenderTarget( renderTarget, 5 );

0 commit comments

Comments
 (0)