Table of Contents

Class MaterialDiffuseCelShadingModelFeature

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

The diffuse Cel Shading for the diffuse material model attribute.

[DataContract("MaterialDiffuseCelShadingModelFeature")]
[Display("Cel Shading", null)]
public class MaterialDiffuseCelShadingModelFeature : MaterialFeature, IEquatable<MaterialDiffuseCelShadingModelFeature>, IEnergyConservativeDiffuseModelFeature, IMaterialDiffuseModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>
Inheritance
MaterialDiffuseCelShadingModelFeature
Implements
Inherited Members

Properties

FakeNDotL

When positive, the dot product between N and L will be modified to account for light intensity with the specified value as a factor

[DataMember(5)]
[Display("Modify N.L factor", null)]
public float FakeNDotL { get; set; }

Property Value

float

RampFunction

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

Property Value

IMaterialCelShadingLightFunction

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(MaterialDiffuseCelShadingModelFeature)

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

public bool Equals(MaterialDiffuseCelShadingModelFeature other)

Parameters

other MaterialDiffuseCelShadingModelFeature

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.