Class MaterialSpecularCelShadingModelFeature
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
Methods
Equals(MaterialSpecularCelShadingModelFeature)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MaterialSpecularCelShadingModelFeature other)
Parameters
other
MaterialSpecularCelShadingModelFeatureAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.
GenerateShaderCompositions(MaterialGeneratorContext, ShaderMixinSource)
protected override void GenerateShaderCompositions(MaterialGeneratorContext context, ShaderMixinSource shaderSource)
Parameters
context
MaterialGeneratorContextshaderSource
ShaderMixinSource
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.