Source

    VisualShaderNodeTexture.swift:13
    enum Source

    Cases

    • case texture

      Use the texture given as an argument for this function.

    • case screen

      Use the current viewport’s texture as the source.

    • case source2dTexture

      Use the texture from this shader’s texture built-in (e.g. a texture of a Sprite2D).

    • case source2dNormal

      Use the texture from this shader’s normal map built-in.

    • case depth

      Use the depth texture captured during the depth prepass. Only available when the depth prepass is used (i.e. in spatial shaders and in the forward_plus or gl_compatibility renderers).

    • case port

      Use the texture provided in the input port for this function.

    • case source3dNormal

      Use the normal buffer captured during the depth prepass. Only available when the normal-roughness buffer is available (i.e. in spatial shaders and in the forward_plus renderer).

    • case roughness

      Use the roughness buffer captured during the depth prepass. Only available when the normal-roughness buffer is available (i.e. in spatial shaders and in the forward_plus renderer).

    • case max

      Represents the size of the Source enum.

    Other members in extension

    Types

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features