Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

Cubemap

Inherits: ImageTextureLayered < TextureLayered < Texture < Resource < RefCounted < Object

6-sided texture typically used in 3D rendering.

Description

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.

Note: Godot doesn't support using cubemaps in a PanoramaSkyMaterial. You can use this tool to convert a cubemap to an equirectangular sky map.

Methods

Resource

create_placeholder ( ) const


Method Descriptions

Resource create_placeholder ( ) const

Creates a placeholder version of this resource (PlaceholderCubemap).