Class ComputeColorStackedNormals
- Namespace
- Stride.Rendering.Materials.ComputeColors
- Assembly
- Stride.Rendering.dll
[DataContract("ComputeColorStackedNormals")]
[Display("Stacked Normals", null)]
public class ComputeColorStackedNormals : ComputeNode, IComputeColor, IComputeNode
- Inheritance
-
objectComputeColorStackedNormals
- Implements
- Extension Methods
Properties
Base
The normal map that defines the base orientation of the normals
public required IComputeColor Base { get; set; }
Property Value
BaseIsXYNormal
Gets or sets a value indicating whether the normal is only stored in XY components and Z is assumed to be sqrt(1 - xx - yy).
[Display("Reconstruct Z", null)]
public bool BaseIsXYNormal { get; set; }
Property Value
- bool
trueif this instance is xy normal; otherwise,false.
Detail
The normal map laying on top of Base, normals are rotated to align with it
public required IComputeColor Detail { get; set; }
Property Value
DetailIsXYNormal
Gets or sets a value indicating whether the normal is only stored in XY components and Z is assumed to be sqrt(1 - xx - yy).
[Display("Reconstruct Z for Detail", null)]
public bool DetailIsXYNormal { get; set; }
Property Value
- bool
trueif this instance is xy normal; otherwise,false.
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
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.
GetChildren(object)
Gets the children.
public override IEnumerable<IComputeNode> GetChildren(object context = null)
Parameters
contextobjectThe context to get the children.
Returns
- IEnumerable<IComputeNode>
The list of children.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.