Cubemap
Six square textures representing the faces of a cube. Commonly used as a skybox.
Cubemap.swift:18class Cubemap
A cubemap is made of 6 textures organized in layers. They are typically used for faking reflections in 3D rendering (see ReflectionProbe
). It can be used to make an object look as if it’s reflecting its surroundings. This usually delivers much better performance than other reflection methods.
This resource is typically used as a uniform in custom shaders. Few core Godot methods make use of Cubemap
resources.
To create such a texture file yourself, reimport your image files using the Godot Editor import presets.
Superclasses
class ImageTextureLayered
Base class for texture types which contain the data of multiple
ImageTexture
s. Each image is of the same size and format.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
func createPlaceholder(
) -> Resource? Creates a placeholder version of this resource (
PlaceholderCubemap
).