Table of Contents

Class MaterialTransparencyAdditiveFeature

Namespace
Stride.Rendering.Materials
Assembly
Stride.Rendering.dll

A transparent additive material.

[DataContract("MaterialTransparencyAdditiveFeature")]
[Display("Additive", null)]
public class MaterialTransparencyAdditiveFeature : MaterialFeature, IMaterialTransparencyFeature, IMaterialFeature, IMaterialShaderGenerator
Inheritance
MaterialTransparencyAdditiveFeature
Implements
Inherited Members

Constructors

MaterialTransparencyAdditiveFeature()

Initializes a new instance of the MaterialTransparencyAdditiveFeature class.

public MaterialTransparencyAdditiveFeature()

Properties

Alpha

Gets or sets the alpha.

[DataMember(10)]
[DataMemberRange(0, 1, 0.01, 0.1, 2)]
public IComputeScalar Alpha { get; set; }

Property Value

IComputeScalar

The alpha.

DitheredShadows

[DataMember(30)]
public bool DitheredShadows { get; set; }

Property Value

bool

Tint

Gets or sets the tint color.

[DataMember(20)]
public IComputeColor Tint { get; set; }

Property Value

IComputeColor

The tint.

Methods

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.