Class ColorCombiner
A texture combiner allows to mix up to 10 textures with different weights.
public class ColorCombiner : ImageEffectShader, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
Color
Combiner
- Implements
- Inherited Members
- Extension Methods
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().
Constructors
ColorCombiner(string)
Initializes a new instance of the Color
Parameters
colorCombinerShaderName
stringName of the color combiner shader.
Properties
Factors
Gets the factors used to multiply the colors.
Property Value
- float[]
The factors.
ModulateRGB
Gets the RGB modulation of each texture.
Property Value
- Color3[]
Methods
UpdateParameters()
Updates the effect Parameters from properties defined in this instance. See remarks.
Remarks
By default, all the input textures will be remapped to Texture0...etc.
Exceptions
- Invalid
Operation Exception Expecting less than 10 textures in input