MaterialTransparencyCutoffFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A transparent cutoff material.
Derived from MaterialTransparencyCutoffFeature:
[DataContract("MaterialTransparencyCutoffFeature")]
[Display("Cutoff", null)]
public class MaterialTransparencyCutoffFeature : MaterialFeature, IMaterialTransparencyFeature, IMaterialFeature, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialTransparencyCutoffFeature() | Initializes a new instance of the MaterialTransparencyCutoffFeature class. |
|
Properties | ||
Alpha | Gets or sets the alpha. |
|
Methods | ||
GenerateShader(MaterialGeneratorContext) |
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
Type | Description |
---|---|
IComputeScalar | The alpha. |
Methods
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |