Toggling the Decal Renderer Feature in Player fails due to Shader Variant Stripping. The shader variants used for rendering without decals enabled get stripped, since the project only has a single URP Asset, with a single Renderer, which has the Decals feature enabled.
To prevent this variant from getting stripped, you can either:
- Add another Renderer to the URP Asset, which has the feature disabled. This will prevent the shader stripper from removing the relevant variants.
- Disable "Strip Unused Variants" project setting. This isn't recommended as it will bloat the built player.
We'll treat the ability to mark a Renderer Feature as something that will be toggled at runtime as a feature request, and track it internally.