From 5245394d546fe962ab12eb03320184e46f79b5c2 Mon Sep 17 00:00:00 2001 From: Henry de Jongh Date: Sun, 11 Nov 2018 02:20:54 +0100 Subject: [PATCH] Fixed projected grid scaling issue. --- Internal/Shaders/BrushPreview.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Internal/Shaders/BrushPreview.shader b/Internal/Shaders/BrushPreview.shader index 57bc3592..eaf45e61 100644 --- a/Internal/Shaders/BrushPreview.shader +++ b/Internal/Shaders/BrushPreview.shader @@ -54,7 +54,7 @@ Shader "SabreCSG/BrushPreview" worldNormal.z = (worldNormal.z > worldNormal.y && worldNormal.z > worldNormal.x)?1:0; float3 worldspace = IN.worldPos; - worldspace -= _GridThickness * 0.5; + worldspace -= (_GridThickness * _GridSize) * 0.5; float2 grid = float2( (worldspace.z * worldNormal.x) + (worldspace.x * worldNormal.z) + (worldspace.x * worldNormal.y),