ComputeColor Class
Namespace: Stride.Rendering.Materials.ComputeColorsAssembly: Stride.Rendering.dll
[DataContract("ComputeColor")]
[Display("Color", null)]
public class ComputeColor : ComputeValueBase<Color4>, IComputeColor, IComputeNode
Name | Description | |
---|---|---|
Constructors | ||
ComputeColor() | Initializes a new instance of the ComputeColor class. |
|
ComputeColor(Color4) | Initializes a new instance of the ComputeColor class. |
|
Properties | ||
HasChanged | Indicates if the IComputeColor has changed since the last time it was checked, which might require recompilation of the shader mixins. Once polled, it will reset all cached states and revert to false until other changes have been triggered. |
|
PremultiplyAlpha | Gets or sets a value indicating whether to convert the texture in pre-multiplied alpha. |
|
Methods | ||
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys) | ||
ToString() |
Constructors
ComputeColor()
Initializes a new instance of the ComputeColor class.
public ComputeColor()
ComputeColor(Color4)
Initializes a new instance of the ComputeColor class.
public ComputeColor(Color4 value)
Parameters
Type | Name | Description |
---|---|---|
Color4 | value | The value. |
Properties
HasChanged
Indicates if the IComputeColor has changed since the last time it was checked, which might require recompilation of the shader mixins. Once polled, it will reset all cached states and revert to false until other changes have been triggered.
public bool HasChanged { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PremultiplyAlpha
Gets or sets a value indicating whether to convert the texture in pre-multiplied alpha.
[DataMember(10)]
[Display("Premultiply alpha", null)]
public bool PremultiplyAlpha { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)
public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
Parameters
Type | Name | Description |
---|---|---|
ShaderGeneratorContext | context | |
MaterialComputeColorKeys | baseKeys |
Returns
Type | Description |
---|---|
ShaderSource |
Overrides
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |