Class MaterialDiffuseCelShadingModelFeature
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
RampFunction
[DataMember(10)]
[Display("Ramp Function", null)]
public IMaterialCelShadingLightFunction RampFunction { get; set; }
Property Value
Methods
Equals(IMaterialShadingModelFeature)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IMaterialShadingModelFeature other)
Parameters
other
IMaterialShadingModelFeatureAn object to compare with this object.
Returns
Equals(MaterialDiffuseCelShadingModelFeature)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MaterialDiffuseCelShadingModelFeature other)
Parameters
other
MaterialDiffuseCelShadingModelFeatureAn 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.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.