From 4efd2f3990e692a56b604c9e0deb735215ea6edc Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 10 Aug 2023 19:16:24 -0700 Subject: Remove extraneous dot when chatbox spawns The chatbox background would not completely disappear at _Emerge = 0, so two dots would show up when the chatbox spawns. --- Shaders/ray_march.cginc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shaders/ray_march.cginc b/Shaders/ray_march.cginc index af4d1a4..5a9524a 100644 --- a/Shaders/ray_march.cginc +++ b/Shaders/ray_march.cginc @@ -136,7 +136,8 @@ float stt_map(float3 p, out int obj_id, out float2 text_uv) box_scale.y *= ceil(p3r); box_scale.z *= ceil(p3r); - float d = distance_from_box(pp, box_scale); + // Only use calculation when in phase 3. + float d = lerp(1000, distance_from_box(pp, box_scale), ceil(p3r)); text_uv = (clamp(pp.xz, -1 * box_scale.xz, box_scale.xz) / box_scale.xz); text_uv = (text_uv + 1) / 2; -- cgit v1.2.3