Class ComputeTextureScalar
- Namespace
- Stride.Rendering.Materials.Compute
Colors
- Assembly
- Stride.Rendering.dll
A scalar texture node.
[DataContract("ComputeTextureScalar")]
[Display("Texture", null)]
public class ComputeTextureScalar : ComputeTextureBase, IComputeScalar, IComputeNode
- Inheritance
-
Compute
Texture Scalar
- Implements
- Inherited Members
Constructors
ComputeTextureScalar()
Constructor
ComputeTextureScalar(Texture, TextureCoordinate, Vector2, Vector2)
Initializes a new instance of the Compute
public ComputeTextureScalar(Texture texture, TextureCoordinate texcoordIndex, Vector2 scale, Vector2 offset)
Parameters
texture
TextureThe texture.
texcoordIndex
TextureCoordinate Index of the texcoord.
scale
Vector2The scale.
offset
Vector2The offset.
Properties
Channel
Gets or sets the channel.
Property Value
- Color
Channel The channel.
FallbackValue
Gets or sets the default value used when no texture is set.
[DataMember(15)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public ComputeFloat FallbackValue { get; set; }
Property Value
Methods
GenerateShaderFromFallbackValue(ShaderGeneratorContext, MaterialComputeColorKeys)
public override ShaderSource GenerateShaderFromFallbackValue(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
Parameters
context
ShaderGenerator Context baseKeys
MaterialCompute Color Keys