Class UniversalRPMaterialGenerator
Inheritance
UniversalRPMaterialGenerator
Assembly: glTFast.dll
Syntax
public class UniversalRPMaterialGenerator : ShaderGraphMaterialGenerator, IMaterialGenerator
Constructors
UniversalRPMaterialGenerator(UniversalRenderPipelineAsset)
Declaration
public UniversalRPMaterialGenerator(UniversalRenderPipelineAsset renderPipelineAsset)
Parameters
Type |
Name |
Description |
UniversalRenderPipelineAsset |
renderPipelineAsset |
|
Fields
Name of the shader graph with clearcoat support
Declaration
public const string MetallicClearcoatShader = "glTF-pbrMetallicRoughness-Clearcoat"
Field Value
Methods
ApplyTransmission(ref Color, IGltfReadable, Transmission, Material, RenderQueue?)
Declaration
protected override RenderQueue? ApplyTransmission(ref Color baseColorLinear, IGltfReadable gltf, Transmission transmission, Material material, RenderQueue? renderQueue)
Parameters
Returns
Overrides
ApplyTransmissionShaderFeatures(MaterialBase)
Declaration
protected override ShaderGraphMaterialGenerator.ShaderMode? ApplyTransmissionShaderFeatures(MaterialBase gltfMaterial)
Parameters
Returns
Overrides
Picks the shader graph with clearcoat support, 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