- Home /
Question by
manikiran22 · Aug 27, 2019 at 08:40 AM ·
shadersbasics
what does worldPos and viewDir mean in terms of unity shaders?
Just started working with unity shader in the Input struct it says float3 worldPos; //The in-world position. what does this actually mean and for some cases there is viewDir.
Comment
Answer by JonPQ · Aug 28, 2019 at 07:05 PM
scroll to the bottom of this page for the definitions... https://docs.unity3d.com/Manual/SL-SurfaceShaders.html