Table of Contents

Class MaterialSpecularCelShadingModelFeature

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

The Cel Shading specular shading model.

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

Properties

RampFunction

[DataMember(5)]
[Display("Ramp Function", null)]
public IMaterialCelShadingLightFunction RampFunction { get; set; }

Property Value

IMaterialCelShadingLightFunction

Methods

Equals(MaterialSpecularCelShadingModelFeature)

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

public bool Equals(MaterialSpecularCelShadingModelFeature other)

Parameters

other MaterialSpecularCelShadingModelFeature

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 override 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.