Class ShaderGraphMaterialGenerator
Implements
Inherited Members
Namespace: GLTFast.Materials
Assembly: solution.dll
Syntax
public class ShaderGraphMaterialGenerator : MaterialGenerator, IMaterialGenerator
Fields
| Name | Description |
|---|---|
| AlphaDstBlendProperty | Shader property ID for property _AlphaDstBlend |
| ClearcoatNormalTextureProperty | Shader property ID for property clearcoatNormalTexture |
| ClearcoatNormalTextureRotationProperty | Shader property ID for property clearcoatNormalTextureRotation |
| ClearcoatNormalTextureScaleProperty | Shader property ID for property clearcoatNormalTexture_Scale |
| ClearcoatNormalTextureScaleTransformProperty | Shader property ID for property clearcoatNormalTexture_ST |
| ClearcoatNormalTextureTexCoordProperty | Shader property ID for property clearcoatNormalTexture_texCoord |
| ClearcoatProperty | Shader property ID for property clearcoatFactor |
| ClearcoatRoughnessProperty | Shader property ID for property clearcoatRoughnessFactor |
| ClearcoatRoughnessTextureProperty | Shader property ID for property clearcoatRoughnessTexture |
| ClearcoatRoughnessTextureRotationProperty | Shader property ID for property clearcoatRoughnessTexture_Rotation |
| ClearcoatRoughnessTextureScaleTransformProperty | Shader property ID for property clearcoatRoughnessTexture_ST |
| ClearcoatRoughnessTextureTexCoordProperty | Shader property ID for property clearcoatRoughnessTexture_texCoord |
| ClearcoatTextureProperty | Shader property ID for property clearcoatTexture |
| ClearcoatTextureRotationProperty | Shader property ID for property clearcoatTexture_Rotation |
| ClearcoatTextureScaleTransformProperty | Shader property ID for property clearcoatTexture_ST |
| ClearcoatTextureTexCoordProperty | Shader property ID for property clearcoatTexture_texCoord |
| DisableSsrTransparentKeyword | Shader keyword _DISABLE_SSR_TRANSPARENT |
| EnableFogOnTransparentKeyword | Shader keyword _ENABLE_FOG_ON_TRANSPARENT |
| MetallicShader | Name of the shader graph used for PBR metallic/roughness materials |
| MotionVectorTag | MotionVector shader tag name |
| MotionVectorUser | MotionVector shader tag User value |
| MotionVectorsPass | MotionVector shader pass name |
| ShaderPassDepthOnlyPass | Shader pass DepthOnly |
| ShaderPassRayTracingPrepass | Shader pass RayTracingPrepass |
| ShaderPassTransparentBackface | Shader pass TransparentBackface |
| ShaderPassTransparentDepthPostpass | Shader pass TransparentDepthPostpass |
| ShaderPassTransparentDepthPrepass | Shader pass TransparentDepthPrepass |
| SpecularShader | Name of the shader graph used for PBR specular/glossiness materials |
| SurfaceTypeTransparentKeyword | Shader keyword _SURFACE_TYPE_TRANSPARENT |
| TransmissionFactorProperty | Shader property ID for property transmissionFactor |
| TransmissionTextureProperty | Shader property ID for property transmissionTexture |
| UnlitShader | Name of the shader graph used for unlit materials |
| ZTestGBufferProperty | Shader property ID for property _ZTestGBuffer |
Methods
| Name | Description |
|---|---|
| ApplyTransmission(ref Color, IGltfReadable, Transmission, Material, RenderQueue?) | |
| ApplyTransmissionShaderFeatures(MaterialBase) | |
| GenerateDefaultMaterial(bool) | Creates a fallback material to be assigned to nodes without a material. |
| GenerateMaterial(MaterialBase, IGltfReadable, bool) | Converts a glTF material into a Unity Material. gltfMaterial might reference textures, which can be queried from gltf. |
| GetMetallicShader(MetallicShaderFeatures) | |
| GetMetallicShaderFeatures(MaterialBase) | |
| LoadShaderByName(string) | |
| SetAlphaModeMask(MaterialBase, Material) | |
| SetDoubleSided(MaterialBase, Material) | |
| SetShaderModeBlend(MaterialBase, Material) | |
| SetShaderModeOpaque(MaterialBase, Material) | |
| SetShaderModePremultiply(MaterialBase, Material) |