MaterialSubsurfaceScatteringFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
Derived from MaterialSubsurfaceScatteringFeature:
[DataContract("MaterialSubsurfaceScatteringFeature")]
[Display("Subsurface Scattering", null)]
public class MaterialSubsurfaceScatteringFeature : MaterialFeature, IMaterialSubsurfaceScatteringFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IMaterialStreamProvider
Name | Description | |
---|---|---|
Properties | ||
IsLightDependent | Gets the services. |
|
KernelFunction | Generates the scattering kernel. |
|
ProfileFunction | The profile mixin to use for the scattering calculations. |
|
ScatteringWidth | Width of the scattering kernel in world space. |
|
Translucency | Translucency of the material. |
|
TranslucencyMap | Controls the thickness of the object. This value gets multiplied with the "Translucency" parameter. |
|
Methods | ||
Equals(IMaterialShadingModelFeature) | ||
Equals(MaterialSubsurfaceScatteringFeature) | ||
Equals(Object) | ||
GenerateShader(MaterialGeneratorContext) | ||
GetHashCode() | ||
GetStreams() |
Properties
IsLightDependent
Gets the services.
public bool IsLightDependent { get; }
Property Value
Type | Description |
---|---|
System.Boolean | The services. |
KernelFunction
Generates the scattering kernel.
[DataMember(30)]
[Display("Scattering kernel", null)]
public IMaterialSubsurfaceScatteringScatteringKernel KernelFunction { get; set; }
Property Value
Type | Description |
---|---|
IMaterialSubsurfaceScatteringScatteringKernel |
ProfileFunction
The profile mixin to use for the scattering calculations.
[DataMember(25)]
[Display("Scattering profile", null)]
public IMaterialSubsurfaceScatteringScatteringProfile ProfileFunction { get; set; }
Property Value
Type | Description |
---|---|
IMaterialSubsurfaceScatteringScatteringProfile |
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
Type | Description |
---|---|
System.Single |
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
Type | Description |
---|---|
System.Single |
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
Type | Description |
---|---|
IComputeScalar |
Methods
Equals(IMaterialShadingModelFeature)
public bool Equals(IMaterialShadingModelFeature other)
Parameters
Type | Name | Description |
---|---|---|
IMaterialShadingModelFeature | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(MaterialSubsurfaceScatteringFeature)
protected bool Equals(MaterialSubsurfaceScatteringFeature other)
Parameters
Type | Name | Description |
---|---|---|
MaterialSubsurfaceScatteringFeature | other |
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
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
GetStreams()
public IEnumerable<MaterialStreamDescriptor> GetStreams()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MaterialStreamDescriptor> |