Search Issue Tracker

By Design

Votes

1

Found in [Package]

12.0.0

Issue ID

1333729

Regression

No

[HDRP] Decal Material's texture is not updated when it's set during runtime with SetTexture

Package: Scriptable Render Pipeline HD

-

How to reproduce:
1. Open the user's attached "RuntimeDecalBug.zip" project
2. Open the "SampleScene"
3. Enter Play Mode
4. Press the Scene tab
5. Select the "Will be added a decal instance once play started" GameObject
6. Observe the Scene view

Expected result: "Will be added a decal instance once play started" GameObject is rendered
Actual result: "Will be added a decal instance once play started" GameObject is not rendered

Reproducible with: 7.6.0 (2019.4.26f1), 10.5.0 (2020.3.7f1), 11.0.0 (2021.1.6f1), 12.0.0 (2021.2.0a16)

Notes:
- The issue is not reproducible when setting the texture on HDRP/Lit
- The texture is updated when updating it manually in the Inspector during runtime

  1. Resolution Note:

    Base Map has to be assigned to the Material in order to make the SetTexture work for a specific Material as unsused variants for shaders are currently removed and can't really assign to material's that the shader was received with Shader.Find("HDRP/Decal")

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.