Search Issue Tracker

Active

Votes

0

Found in

2021.3.45f1

2022.3.51f1

6000.0.25f1

6000.1.0a2

Issue ID

UUM-85456

Regression

No

Fog density value is not returned when using the Fog node in a sprite Shader Graph

--

-

How to reproduce:
1. Open the attached “IN-86269” project
2. Open the “SampleScene” and Observe the Game view
3. Select the “Image” GameObject in the Hierarchy (Canvas/Image)
4. In the Inspector, expand the material properties by pressing the “>” arrow under the “sprite_material”
5. Toggle the “fog_test” boolean value on and off
6. Observe the result

Expected result: The image stays red, regardless of the “fog_test” value
Actual result: The image is black when the “fog_test” value is “true”

Reproducible in: 2021.3.45f1, 2022.3.51f1, 6000.0.25f1, 6000.1.0a2

Reproducible on: Windows 11
Not reproducible on: No other environments tested

Notes:

* There is also a cube in the scene with the same setup using a standard unlit Shader Graph, where the issue is not reproducible
* Multiplying boolean values is not supported in 2021.3, so there is a separate 2021.3 project where the values (0 and 1) must be assigned manually
* Also reproducible in Player

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.