Table of Contents

Class ColorCombiner

Namespace
Stride.Rendering.Images
Assembly
Stride.Rendering.dll

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
ColorCombiner
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 ColorCombiner class.

public ColorCombiner(string colorCombinerShaderName = "ColorCombinerEffect")

Parameters

colorCombinerShaderName string

Name of the color combiner shader.

Properties

Factors

Gets the factors used to multiply the colors.

public float[] Factors { get; }

Property Value

float[]

The factors.

ModulateRGB

Gets the RGB modulation of each texture.

public Color3[] ModulateRGB { get; }

Property Value

Color3[]

Methods

UpdateParameters()

Updates the effect Parameters from properties defined in this instance. See remarks.

protected override void UpdateParameters()

Remarks

By default, all the input textures will be remapped to Texture0...etc.

Exceptions

InvalidOperationException

Expecting less than 10 textures in input