From 15ac2518ce3fbbea4f206a907c10b4078faa0141 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Tue, 8 Aug 2023 20:24:39 +0200 Subject: [PATCH] gyroid prop: fix bounds --- Assets/raymarched/Raymarching.unity | 2 +- Assets/raymarched/gyroid.shader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/raymarched/Raymarching.unity b/Assets/raymarched/Raymarching.unity index 0b10f1f..19136dd 100644 --- a/Assets/raymarched/Raymarching.unity +++ b/Assets/raymarched/Raymarching.unity @@ -295,7 +295,7 @@ MonoBehaviour: m_EditorClassIdentifier: type: 3 objectId: d31bcc3e-72e6-4cc9-a179-62e88e68def5 - randomNum: 59964531 + randomNum: 15360929 --- !u!114 &297009271 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/raymarched/gyroid.shader b/Assets/raymarched/gyroid.shader index d5e9164..c8cd8d1 100644 --- a/Assets/raymarched/gyroid.shader +++ b/Assets/raymarched/gyroid.shader @@ -37,7 +37,7 @@ Shader "CrispyPin/Gyroid" SurfacePoint main(float3 p) { SurfacePoint d; - d = qRound(mBox(p, 1), 0.01); + d = qRound(mBox(p, 0.98), 0.01); d = qIntersect(d, mGyroid(p, 16, 0, 0.2), 0.01); // sdGyroid(p, 12, sin(_Time.y) * UNITY_PI * 0.5, 0.2), // d.mat = mat(.8, 1);