Skip to content

Commit 2f371e1

Browse files
committed
Fixed splat editing selection being upside down
Regressed in v1.0.0 due to VR support changes 3c558a9
1 parent 9310dce commit 2f371e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package/Shaders/SplatUtilities.compute

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ void CSSelectionUpdate (uint3 id : SV_DispatchThreadID)
403403

404404
float3 centerWorldPos = mul(_MatrixObjectToWorld, float4(pos,1)).xyz;
405405
float4 centerClipPos = mul(UNITY_MATRIX_VP, float4(centerWorldPos, 1));
406+
centerClipPos.y *= -1;
406407
bool behindCam = centerClipPos.w <= 0;
407408
if (behindCam)
408409
return;

0 commit comments

Comments
 (0)