Hello,
I’m trying to convert an old Built in RPipeline shader written in Cg, to be usable in URP.
I can’t find the equivalent of UnityObjectToWorldDir()
Does someone have the solution to this?
Thank you
Hello,
I’m trying to convert an old Built in RPipeline shader written in Cg, to be usable in URP.
I can’t find the equivalent of UnityObjectToWorldDir()
Does someone have the solution to this?
Thank you
you can always do
float3 worldDir = mul(unity_ObjectToWorld, float4(objDir.x, objDir.y, objDir.z, 0)).xyz;