Render a world node material to a cubemap. The parameters are:
- renderer - WebGLRenderer
- material - world node material, should be of type MeshNodeMaterial
- cubeRes - resolution of the rendered cubemap
-
options - (optional) object that holds texture parameters
for an auto-generated cube render target; has the same format
as the options parameter for the WebGLCubeRenderTarget
constructor
The resulting
render target with a cube
texture in it can be used as a scene background.