Inherits: Resource < Reference < Object
A CubeMap is a 6-sided 3D texture.
A 6-sided 3D texture typically used for faking reflections. 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.
int | flags | 7 |
float | lossy_storage_quality | 0.7 |
Storage | storage_mode | 0 |
int | get_height ( ) const |
Image | get_side ( Side side ) const |
int | get_width ( ) const |
void | set_side ( Side side, Image image ) |
enum Storage:
CubeMap
without any compression.CubeMap
with strong compression that reduces image quality.CubeMap
with moderate compression that doesn't reduce image quality.enum Side:
CubeMap
.CubeMap
.CubeMap
.CubeMap
.CubeMap
.CubeMap
.enum Flags:
Default | 7 |
Setter | set_flags(value) |
Getter | get_flags() |
The render flags for the CubeMap
. See the Flags constants for details.
Default | 0.7 |
Setter | set_lossy_storage_quality(value) |
Getter | get_lossy_storage_quality() |
The lossy storage quality of the CubeMap
if the storage mode is set to STORAGE_COMPRESS_LOSSY.
Default | 0 |
Setter | set_storage(value) |
Getter | get_storage() |
The CubeMap
's storage mode. See Storage constants.
Returns the CubeMap
's height.
Returns an Image for a side of the CubeMap
using one of the Side constants.
Returns the CubeMap
's width.
Sets an Image for a side of the CubeMap
using one of the Side constants.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_cubemap.html