Skip to content

Commit

Permalink
CubeCamera: Add comment to clarify mipmap generation. (#26772)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Sep 16, 2023
1 parent 51462bf commit c6cfa6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cameras/CubeCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit c6cfa6a

Please sign in to comment.