Search Issue Tracker

Fixed in 12.x

Votes

1

Found in [Package]

7.3.1

Issue ID

1323726

Regression

No

[Shadergraph] Transform algorithm from Absolute World to Object Mode in Direction mode is wrong

Package: Shader Graph

-

Repro steps:
1. use a project with both HDRP and URP (create from 3D template and add URP and HDRP via package manager)
2. create a shadergraph with both an HDRP and URP target (in 7.x.x make two shadergraphs, one with a URP and one with an HDRP master node, and follow the steps for both)
3. Create a Transform node, set the "From" to Absolute World and "To" to Object, and set the mode to Direction
4. Set the input to the transform mode to (1, 1, 1) and plug it into the base color
5. Create a material for the shadergraph
6. Create a sphere in the scene and place it at (1, 1, 1)
7. Put the material on the sphere
8. Have the SRP be HDRP and move the camera around, note the color changes, this should not happen as neither the absolute world space nor object space should be relative to camera position
9. Switch the SRP to URP, move the camera around, note that the result is different for URP from HDRP, when the only space that should cause differences between render pipelines is World space

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.