MaterialFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A material feature
System.Object →
MaterialFeature
Derived from MaterialFeature: MaterialClearCoatFeature MaterialDiffuseCelShadingModelFeature MaterialDiffuseHairModelFeature MaterialDiffuseLambertModelFeature MaterialDiffuseMapFeature MaterialDisplacementMapFeature MaterialEmissiveMapFeature MaterialGlossinessMapFeature MaterialMetalnessMapFeature MaterialNormalMapFeature MaterialOcclusionMapFeature MaterialSpecularHairModelFeature MaterialSpecularMapFeature MaterialSpecularMicrofacetModelFeature MaterialSubsurfaceScatteringFeature MaterialTessellationBaseFeature MaterialTransparencyAdditiveFeature MaterialTransparencyBlendFeature MaterialTransparencyCutoffFeature
[DataContract(Inherited = true)]
public abstract class MaterialFeature : IMaterialFeature, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialFeature() | ||
Properties | ||
Enabled | ||
Methods | ||
GenerateShader(MaterialGeneratorContext) | Generates the shader for the feature. |
|
MultipassGeneration(MaterialGeneratorContext) | Called during prepass, used to enumerate extra passes. |
|
Visit(MaterialGeneratorContext) |
Constructors
MaterialFeature()
protected MaterialFeature()
Properties
Enabled
[DataMember(-20)]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public abstract void GenerateShader(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context | The context. |
MultipassGeneration(MaterialGeneratorContext)
Called during prepass, used to enumerate extra passes.
public virtual void MultipassGeneration(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context | The context. |
Visit(MaterialGeneratorContext)
public void Visit(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |