Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Source
VisualShaderNodeTexture.swift:13enum 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
var source: VisualShaderNodeTexture.Source
Determines the source for the lookup. See
Source
for options.var texture: Texture2D?
The source texture, if needed for the selected
source
.var textureType: VisualShaderNodeTexture.TextureType
Specifies the type of the texture if
source
is set to .texture. SeeTextureType
for options.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.