Class MaterialSubsurfaceScatteringFeature
[DataContract("MaterialSubsurfaceScatteringFeature")]
[Display("Subsurface Scattering", null)]
public class MaterialSubsurfaceScatteringFeature : MaterialFeature, IMaterialSubsurfaceScatteringFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IMaterialStreamProvider
- Inheritance
-
MaterialSubsurfaceScatteringFeature
- Implements
- Inherited Members
Properties
IsLightDependent
Gets the services.
public bool IsLightDependent { get; }
Property Value
- bool
The services.
KernelFunction
Generates the scattering kernel.
[DataMember(30)]
[Display("Scattering kernel", null)]
public IMaterialSubsurfaceScatteringScatteringKernel KernelFunction { get; set; }
Property Value
ProfileFunction
The profile mixin to use for the scattering calculations.
[DataMember(25)]
[Display("Scattering profile", null)]
public IMaterialSubsurfaceScatteringScatteringProfile ProfileFunction { get; set; }
Property Value
ScatteringWidth
Width of the scattering kernel in world space.
[DataMember(5)]
[Display("Scattering width", null)]
[DataMemberRange(0.001, 0.5, 0.001, 0.01, 4)]
public float ScatteringWidth { get; set; }
Property Value
Translucency
Translucency of the material.
[DataMember(10)]
[Display("Translucency", null)]
[DataMemberRange(0, 1, 0.001, 0.01, 3)]
public float Translucency { get; set; }
Property Value
TranslucencyMap
Controls the thickness of the object. This value gets multiplied with the "Translucency" parameter.
[DataMember(20)]
[Display("Translucency map", null)]
public IComputeScalar TranslucencyMap { 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(MaterialSubsurfaceScatteringFeature)
protected bool Equals(MaterialSubsurfaceScatteringFeature other)
Parameters
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.
GetStreams()
Gets the streams used by a material
public IEnumerable<MaterialStreamDescriptor> GetStreams()
Returns
- IEnumerable<MaterialStreamDescriptor>
IEnumerable<MaterialStream>.