- Home /
How to get object rotation in Shader Graph
I want to get object rotation in shader graph. I know it's possible because there is Transformation Matrix node. In this topic:
https://answers.unity.com/questions/1837941/shadergraph-how-do-i-get-an-objects-rotation-value.html
someone posted a solution but it only works for Y axis. I tried to make it work for other axes but It didn't work. Could anyone explain how to do this?
Comment
Your answer
Follow this Question
Related Questions
Convention of matrices passed to shaders 1 Answer
Calculating an oblique clipping matrix / making occlusion matrix equal to projection matrix? 0 Answers
How to use Matrix4x4? 2 Answers
Problems using OnRenderObject() and Graphics.DrawMeshNow() 2 Answers
DirectX11 get handle to Unity Swapchain/Backbuffer 0 Answers