Class HighDefinitionRPMaterialGenerator
Inheritance
HighDefinitionRPMaterialGenerator
Assembly: glTFast.dll
Syntax
public class HighDefinitionRPMaterialGenerator : ShaderGraphMaterialGenerator, IMaterialGenerator
Fields
CullModeForwardProperty
_CullModeForward shader property identifier
Declaration
public static readonly int CullModeForwardProperty
Field Value
DistortionVectorsPass
DistortionVectors shader pass name
Declaration
public const string DistortionVectorsPass = "DistortionVectors"
Field Value
Name of the stack lit shader graph used for advanced PBR materials
Declaration
public const string MetallicStackLitShader = "glTF-pbrMetallicRoughnessStackLit"
Field Value
GUID of the stack lit shader graph used for advanced PBR materials
Declaration
public const string MetallicStackLitShaderGuid = "429ab83ee9ef05b4f8a76e58ea5d5ad4"
Field Value
Methods
Picks more advanced StackLit based shader graph, if any material feature requires it.
Declaration
protected override Shader GetMetallicShader(ShaderGraphMaterialGenerator.MetallicShaderFeatures features)
Parameters
Returns
Type |
Description |
Shader |
Shader capable of rendering the features
|
Overrides
SetAlphaModeMask(MaterialBase, Material)
Declaration
protected override void SetAlphaModeMask(MaterialBase gltfMaterial, Material material)
Parameters
Overrides
SetDoubleSided(MaterialBase, Material)
Declaration
protected override void SetDoubleSided(MaterialBase gltfMaterial, Material material)
Parameters
Overrides
SetShaderModeBlend(MaterialBase, Material)
Declaration
protected override void SetShaderModeBlend(MaterialBase gltfMaterial, Material material)
Parameters
Overrides
Implements