Describe the bug
At runtime, importing and instantiating a new gltf does not receive any decals from HDRP DecalProjector.
To Reproduce
Steps to reproduce the behavior:
Ensure your Unity project uses HDRP
Go into play mode
Import a gltf mesh
Create some GameObject having HDRP DecalProjector
Note the gltf mesh does not receives any decals
Expected behavior
Decals should appear
I think the spawned mesh's material should have it's renderQueue updated. That is, HDRP exposes HDRenderQueue.Priority.OpaqueDecal and HDRenderQueue.Priority.OpaqueDecalAlphaTest. See MaterialExtension.HDRenderQueue.ChangeType() for details.
Describe the bug At runtime, importing and instantiating a new gltf does not receive any decals from HDRP DecalProjector.
To Reproduce Steps to reproduce the behavior:
Expected behavior Decals should appear
I think the spawned mesh's material should have it's
renderQueue
updated. That is, HDRP exposesHDRenderQueue.Priority.OpaqueDecal
andHDRenderQueue.Priority.OpaqueDecalAlphaTest
. SeeMaterialExtension.HDRenderQueue.ChangeType()
for details.