Skip to content

Commit

Permalink
Update URP_NiloCatExtension_ScreenSpaceDecal_Unlit.shader
Browse files Browse the repository at this point in the history
  • Loading branch information
stuw-u authored May 24, 2021
1 parent 2abff15 commit a07ab3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion URP_NiloCatExtension_ScreenSpaceDecal_Unlit.shader
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Shader "Universal Render Pipeline/NiloCat Extension/Screen Space Decal/Unlit"
//----------------------------------------------------------------------------
float2 viewRayEndPosVS_xy = float2(unity_OrthoParams.xy * (i.screenPos.xy - 0.5) * 2 /* to clip space */); // Ortho near/far plane xy pos
float4 vposOrtho = float4(viewRayEndPosVS_xy, -sceneDepthVS, 1); // Constructing a view space pos
float3 wposOrtho = mul(unity_CameraToWorld, vposOrtho).xyz; // Trans. view space to world space
float3 wposOrtho = mul(UNITY_MATRIX_I_V, vposOrtho).xyz; // Trans. view space to world space
//----------------------------------------------------------------------------

// transform world to object space(decal space)
Expand Down

0 comments on commit a07ab3e

Please sign in to comment.