cubemap
fun cubemap(width: Int, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format), levels: Int = 1, session: Session? = Session.active): Cubemap(source)
Creates a cubemap texture with the specified parameters.
Return
A new Cubemap texture with the specified configuration.
Parameters
width
The width of the cubemap texture. All six faces will have this width and height (i.e., width x width).
format
The color format of the texture. Defaults to ColorFormat.RGBa.
type
The color type of the texture. Defaults to the value determined by defaultColorType for the given format.
levels
The number of mipmap levels. Defaults to 1.
session
The Session associated with this texture. Defaults to the currently active session.