You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>It's not much different. First we load the equirectangular image as a texture
223
-
and then, in the callback after it has loaded, we can call <ahref="/docs/#api/en/renderers/WebGLCubeRenderTarget.fromEquirectangularTexture"><codeclass="notranslate" translate="no">WebGLCubeRenderTarget.fromEquirectangularTexture</code></a>
224
-
which will generate a cubemap from the equirectangular texture for us.
225
-
We pass in the size we want the cubemap to be to <ahref="/docs/#api/en/renderers/WebGLCubeRenderTarget"><codeclass="notranslate" translate="no">WebGLCubeRenderTarget</code></a>.
226
-
Passing in the height of the equirectangular image seems like a good bet.</p>
0 commit comments