Table of Contents

Class MaterialTransparencyCutoffFeature

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

A transparent cutoff material.

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

Constructors

MaterialTransparencyCutoffFeature()

Initializes a new instance of the MaterialTransparencyCutoffFeature class.

public MaterialTransparencyCutoffFeature()

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.

Methods

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.