Search Issue Tracker

By Design

Votes

0

Found in

2022.3.31f1

6000.0.4f1

Issue ID

UUM-72835

Regression

No

Reflection Probes are not working with Shader Graph when the Rendering Path is Forward+

-

How to reproduce:
Open the attached project "URP reflection probe bug.zip"

Expected results: "ShaderGraph" GameObject is reflective
Actual results: "ShaderGraph" GameObject is black

Reproducible with: 2022.3.31f1, 6000.0.4f1
Could not test with: 2021.3.39f1 (no Forward+ option)

Reproducible on: Windows 10 22H2
Not reproducible on: No other environment tested

  1. Resolution Note:

    The URP's GardenScene sample gives an example how we can solve the reflection probes for Forward+ using a custom function as a RG node
    Here is the code:
    #ifdef SHADERGRAPH_PREVIEW
    reflection = 0;
    #else
    half3 reflectionVec = reflect(-viewDirectionWS, normalWS);
    reflection = GlossyEnvironmentReflection(reflectionVec, positionWS, 0, 1.0h, screenspaceUV);
    #endif

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.