:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisualShaderNodeCubeMap.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisualShaderNodeCubeMap: VisualShaderNodeCubeMap ======================= **Inherits:** :ref:`VisualShaderNode` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` A :ref:`CubeMap` sampling node to be used within the visual shader graph. Description ----------- Translated to ``texture(cubemap, vec3)`` in the shader language. Returns a color vector and alpha channel as scalar. Properties ---------- +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+ | :ref:`CubeMap` | :ref:`cube_map` | | +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+ | :ref:`Source` | :ref:`source` | ``0`` | +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+ | :ref:`TextureType` | :ref:`texture_type` | ``0`` | +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+ Enumerations ------------ .. _enum_VisualShaderNodeCubeMap_Source: .. _class_VisualShaderNodeCubeMap_constant_SOURCE_TEXTURE: .. _class_VisualShaderNodeCubeMap_constant_SOURCE_PORT: enum **Source**: - **SOURCE_TEXTURE** = **0** --- Use the :ref:`CubeMap` set via :ref:`cube_map`. If this is set to :ref:`source`, the ``samplerCube`` port is ignored. - **SOURCE_PORT** = **1** --- Use the :ref:`CubeMap` sampler reference passed via the ``samplerCube`` port. If this is set to :ref:`source`, the :ref:`cube_map` texture is ignored. ---- .. _enum_VisualShaderNodeCubeMap_TextureType: .. _class_VisualShaderNodeCubeMap_constant_TYPE_DATA: .. _class_VisualShaderNodeCubeMap_constant_TYPE_COLOR: .. _class_VisualShaderNodeCubeMap_constant_TYPE_NORMALMAP: enum **TextureType**: - **TYPE_DATA** = **0** --- No hints are added to the uniform declaration. - **TYPE_COLOR** = **1** --- Adds ``hint_albedo`` as hint to the uniform declaration for proper sRGB to linear conversion. - **TYPE_NORMALMAP** = **2** --- Adds ``hint_normal`` as hint to the uniform declaration, which internally converts the texture for proper usage as normal map. Property Descriptions --------------------- .. _class_VisualShaderNodeCubeMap_property_cube_map: - :ref:`CubeMap` **cube_map** +----------+---------------------+ | *Setter* | set_cube_map(value) | +----------+---------------------+ | *Getter* | get_cube_map() | +----------+---------------------+ The :ref:`CubeMap` texture to sample when using :ref:`SOURCE_TEXTURE` as :ref:`source`. ---- .. _class_VisualShaderNodeCubeMap_property_source: - :ref:`Source` **source** +-----------+-------------------+ | *Default* | ``0`` | +-----------+-------------------+ | *Setter* | set_source(value) | +-----------+-------------------+ | *Getter* | get_source() | +-----------+-------------------+ Defines which source should be used for the sampling. See :ref:`Source` for options. ---- .. _class_VisualShaderNodeCubeMap_property_texture_type: - :ref:`TextureType` **texture_type** +-----------+-------------------------+ | *Default* | ``0`` | +-----------+-------------------------+ | *Setter* | set_texture_type(value) | +-----------+-------------------------+ | *Getter* | get_texture_type() | +-----------+-------------------------+ Defines the type of data provided by the source texture. See :ref:`TextureType` for options. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`