MaterialDiffuseCelShadingModelFeature Class
Namespace: Stride.Rendering.Materials
Assembly: Stride.Rendering.dll
The diffuse Cel Shading for the diffuse material model attribute.
Derived from MaterialDiffuseCelShadingModelFeature:
[DataContract("MaterialDiffuseCelShadingModelFeature")]
[Display("Cel Shading", null)]
public class MaterialDiffuseCelShadingModelFeature : MaterialFeature, IEquatable<MaterialDiffuseCelShadingModelFeature>, IEnergyConservativeDiffuseModelFeature, IMaterialDiffuseModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>
|
Improve this Doc
View Source
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
Type |
Description |
System.Single |
|
RampFunction
[DataMember(10)]
[Display("Ramp Function", null)]
public IMaterialCelShadingLightFunction RampFunction { get; set; }
Property Value
|
Improve this Doc
View Source
Methods
Equals(IMaterialShadingModelFeature)
public bool Equals(IMaterialShadingModelFeature other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(MaterialDiffuseCelShadingModelFeature)
public bool Equals(MaterialDiffuseCelShadingModelFeature other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Explicit Interface Implementations
IEnergyConservativeDiffuseModelFeature.IsEnergyConservative
bool IEnergyConservativeDiffuseModelFeature.IsEnergyConservative { get; set; }
Returns
Type |
Description |
System.Boolean |
|
Extension Methods