MaterialTransparencyBlendFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A transparent blend material.
Derived from MaterialTransparencyBlendFeature:
[DataContract("MaterialTransparencyBlendFeature")]
[Display("Blend", null)]
public class MaterialTransparencyBlendFeature : MaterialFeature, IMaterialTransparencyFeature, IMaterialFeature, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialTransparencyBlendFeature() | Initializes a new instance of the MaterialTransparencyBlendFeature class. |
|
Fields | ||
ShadingColorAlphaFinalCallbackOrder | ||
Properties | ||
Alpha | Gets or sets the alpha. |
|
Tint | Gets or sets the tint color. |
|
Methods | ||
GenerateShader(MaterialGeneratorContext) |
Constructors
MaterialTransparencyBlendFeature()
Initializes a new instance of the MaterialTransparencyBlendFeature class.
public MaterialTransparencyBlendFeature()
Fields
ShadingColorAlphaFinalCallbackOrder
public const int ShadingColorAlphaFinalCallbackOrder = 0
Field Value
Type | Description |
---|---|
System.Int32 |
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 |