Hi, I'm following a tutorial and it calculates the depth of a fragment like this: depth = -UnityObjectToViewPos(v.vertex).z * _ProjectionParams.w;
確定! 回上一頁