Table of Contents

Class MaterialSpecularThinGlassModelFeature

Namespace
Stride.Rendering.Materials
Assembly
Stride.Rendering.dll
[DataContract("MaterialSpecularThinGlassModelFeature")]
[Display("Glass", null)]
public class MaterialSpecularThinGlassModelFeature : MaterialSpecularMicrofacetModelFeature, IMaterialSpecularModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IEquatable<MaterialSpecularMicrofacetModelFeature>, IEquatable<MaterialSpecularThinGlassModelFeature>
Inheritance
MaterialSpecularThinGlassModelFeature
Implements
Inherited Members

Constructors

MaterialSpecularThinGlassModelFeature()

Initializes a new instance of the MaterialSpecularThinGlassModelFeature class.

public MaterialSpecularThinGlassModelFeature()

Properties

RefractiveIndex

Gets or sets the refractive index of the material.

[DataMember(2)]
[DataMemberRange(1, 5, 0.01, 0.1, 3)]
public float RefractiveIndex { get; set; }

Property Value

float

The alpha.

Methods

Equals(MaterialSpecularThinGlassModelFeature)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MaterialSpecularThinGlassModelFeature other)

Parameters

other MaterialSpecularThinGlassModelFeature

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

MultipassGeneration(MaterialGeneratorContext)

Called during prepass, used to enumerate extra passes.

public override void MultipassGeneration(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.