diff options
| author | yum <yum.food.vr@gmail.com> | 2023-08-10 19:16:24 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-08-10 19:17:38 -0700 |
| commit | 4efd2f3990e692a56b604c9e0deb735215ea6edc (patch) | |
| tree | 68ba59f9271de4906a8a23be80ac84b31751a0f8 | |
| parent | c6335e21f7b0b7bf8f0d05eef5ea854fbf560666 (diff) | |
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.
| -rw-r--r-- | Shaders/ray_march.cginc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
