Inherits: VisualShaderNode < Resource < Reference < Object
A CubeMap sampling node to be used within the visual shader graph.
Translated to texture(cubemap, vec3)
in the shader language. Returns a color vector and alpha channel as scalar.
CubeMap | cube_map | |
Source | source | 0 |
TextureType | texture_type | 0 |
enum Source:
samplerCube
port is ignored.samplerCube
port. If this is set to source, the cube_map texture is ignored.enum TextureType:
hint_albedo
as hint to the uniform declaration for proper sRGB to linear conversion.hint_normal
as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.Setter | set_cube_map(value) |
Getter | get_cube_map() |
The CubeMap texture to sample when using SOURCE_TEXTURE as source.
Default | 0 |
Setter | set_source(value) |
Getter | get_source() |
Defines which source should be used for the sampling. See Source for options.
Default | 0 |
Setter | set_texture_type(value) |
Getter | get_texture_type() |
Defines the type of data provided by the source texture. See TextureType for options.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualshadernodecubemap.html