ColorCombiner Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
A texture combiner allows to mix up to 10 textures with different weights.
System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect → ImageEffectShader →
ColorCombiner
Derived from ColorCombiner:
public class ColorCombiner : ImageEffectShader, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Remarks
This effects takes from 1 to 10 textures in input and combine them to a single output. Before using this class, it is recommended to clear the inputs by using Reset().
Name | Description | |
---|---|---|
Constructors | ||
ColorCombiner(String) | Initializes a new instance of the ColorCombiner class. |
|
Properties | ||
Factors | Gets the factors used to multiply the colors. |
|
ModulateRGB | Gets the RGB modulation of each texture. |
|
Methods | ||
UpdateParameters() |
Constructors
ColorCombiner(String)
Initializes a new instance of the ColorCombiner class.
public ColorCombiner(string colorCombinerShaderName = "ColorCombinerEffect")
Parameters
Type | Name | Description |
---|---|---|
System.String | colorCombinerShaderName | Name of the color combiner shader. |
Properties
Factors
Gets the factors used to multiply the colors.
public float[] Factors { get; }
Property Value
Type | Description |
---|---|
System.Single[] | The factors. |
ModulateRGB
Gets the RGB modulation of each texture.
public Color3[] ModulateRGB { get; }
Property Value
Type | Description |
---|---|
Color3[] |
Methods
UpdateParameters()
protected override void UpdateParameters()