A class containing useful rendering methods.
Enable all possible Verge3D layers for the given object. The function returns the layers mask which was applied to the object before the assignment.
Render the given scene into a cubemap. The parameters are:
An object containing options for the cube camera used to render the scene into the cubemap; the options and their default values are:
{
camPos: new Vector3(),
clipStart: 0.1,
clipEnd: 100
}
Render a world node material to a cubemap. The parameters are:
options
parameter for the WebGLCubeRenderTarget constructor
The resulting render target with a cube texture in it can be used as a scene background.