卡通渲染 描邊 outline 部分shader

頂點着色器web float4 viewPos = mul(UNITY_MATRIX_V, mul(unity_ObjectToWorld, v.vertex)); viewPos = viewPos / viewPos.w; float3 N = UnityObjectToViewPos(v.normal); N.z = 0.0099999998; N = normalize(N); // 這
相關文章
相關標籤/搜索