Pass:skybox

Draws a skybox.


Pass:skybox(skybox)

Arguments

NameTypeDescription
skyboxTexture The skybox to render. Its TextureType can be cube to render as a cubemap, or 2d to render as an equirectangular (spherical) 2D image.

Returns

Nothing


Pass:skybox()

Arguments

None

Returns

Nothing

Notes

The skybox will be rotated based on the camera rotation.

The skybox is drawn using a fullscreen triangle.

The skybox uses a custom shader, so set the shader to nil before calling this function (unless explicitly using a custom shader).

See also