Table of Contents

Class ComputeClampedLerpBase<T>

Namespace
Stride.Rendering.Materials.ComputeColors
Assembly
Stride.Rendering.dll
[DataContract(Inherited = true)]
[Display("Lerp Operator", null)]
public abstract class ComputeClampedLerpBase<T> : ComputeNode, IComputeNode where T : class, IComputeNode

Type Parameters

T
Inheritance
object
ComputeClampedLerpBase<T>
Implements
Derived
Extension Methods

Properties

Black

The color that would be displayed when Blend is entirely black (equal or less than zero), otherwise a blend of this and White

public required T Black { get; set; }

Property Value

T

Blend

The color used to blend between Black and White; a value of 0.5 would display a color halfway between them, a value closer to zero would tend towards Black while a value closer to one would tend towards White

public required T Blend { get; set; }

Property Value

T

White

The color that would be displayed when Blend is completely white (equal or greater than one), otherwise a blend of this and Black

public required T White { get; set; }

Property Value

T

Methods

GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)

Generates the shader source equivalent for this node

public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)

Parameters

context ShaderGeneratorContext
baseKeys MaterialComputeColorKeys

Returns

ShaderSource

ShaderSource.

GetChildren(object)

Gets the children.

public override IEnumerable<IComputeNode> GetChildren(object context = null)

Parameters

context object

The 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.