MaterialTransparencyAdditiveFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A transparent additive material.
Derived from MaterialTransparencyAdditiveFeature:
[DataContract("MaterialTransparencyAdditiveFeature")]
[Display("Additive", null)]
public class MaterialTransparencyAdditiveFeature : MaterialFeature, IMaterialTransparencyFeature, IMaterialFeature, IMaterialShaderGenerator
| Name | Description | |
|---|---|---|
| Constructors | ||
| MaterialTransparencyAdditiveFeature() | Initializes a new instance of the MaterialTransparencyAdditiveFeature class. |
|
| Properties | ||
| Alpha | Gets or sets the alpha. |
|
| Tint | Gets or sets the tint color. |
|
| Methods | ||
| GenerateShader(MaterialGeneratorContext) | ||
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
| Type | Description |
|---|---|
| IComputeScalar | The alpha. |
Tint
Gets or sets the tint color.
[DataMember(20)]
public IComputeColor Tint { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeColor | The tint. |
Methods
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialGeneratorContext | context |