Class ComputeFloat
- Namespace
- Stride.Rendering.Materials.ComputeColors
- Assembly
- Stride.Rendering.dll
A float compute color.
[DataContract("ComputeFloat")]
[Display("Float", null)]
public class ComputeFloat : ComputeValueBase<float>, IComputeScalar, IComputeNode
- Inheritance
-
ComputeFloat
- Implements
- Inherited Members
Constructors
ComputeFloat()
Initializes a new instance of the ComputeFloat class.
public ComputeFloat()
ComputeFloat(float)
Initializes a new instance of the ComputeFloat class.
public ComputeFloat(float value)
Parameters
valuefloatThe value.
Methods
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)
Generates the shader source equivalent for this node
public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
Parameters
contextShaderGeneratorContextbaseKeysMaterialComputeColorKeys
Returns
- ShaderSource
ShaderSource.