Table of Contents

Class MaterialSpecularMicrofacetModelFeature

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

The microfacet specular shading model.

[DataContract("MaterialSpecularMicrofacetModelFeature")]
[Display("Microfacet", null)]
public class MaterialSpecularMicrofacetModelFeature : MaterialFeature, IMaterialSpecularModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IEquatable<MaterialSpecularMicrofacetModelFeature>
Inheritance
MaterialSpecularMicrofacetModelFeature
Implements
Derived
Inherited Members

Properties

Environment

[DataMember(40)]
[Display("Environment (DFG)", null)]
public IMaterialSpecularMicrofacetEnvironmentFunction Environment { get; set; }

Property Value

IMaterialSpecularMicrofacetEnvironmentFunction

Fresnel

[DataMember(10)]
[Display("Fresnel", null)]
public IMaterialSpecularMicrofacetFresnelFunction Fresnel { get; set; }

Property Value

IMaterialSpecularMicrofacetFresnelFunction

NormalDistribution

[DataMember(30)]
[Display("Normal Distribution", null)]
public IMaterialSpecularMicrofacetNormalDistributionFunction NormalDistribution { get; set; }

Property Value

IMaterialSpecularMicrofacetNormalDistributionFunction

Visibility

[DataMember(20)]
[Display("Visibility", null)]
public IMaterialSpecularMicrofacetVisibilityFunction Visibility { get; set; }

Property Value

IMaterialSpecularMicrofacetVisibilityFunction

Methods

Equals(IMaterialShadingModelFeature)

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

public bool Equals(IMaterialShadingModelFeature other)

Parameters

other IMaterialShadingModelFeature

An object to compare with this object.

Returns

bool

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

Equals(MaterialSpecularMicrofacetModelFeature)

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

public bool Equals(MaterialSpecularMicrofacetModelFeature other)

Parameters

other MaterialSpecularMicrofacetModelFeature

An object to compare with this object.

Returns

bool

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

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

GenerateShaderCompositions(MaterialGeneratorContext, ShaderMixinSource)

protected virtual void GenerateShaderCompositions(MaterialGeneratorContext context, ShaderMixinSource shaderSource)

Parameters

context MaterialGeneratorContext
shaderSource ShaderMixinSource

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.