Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
Sri Sham Haran 2023-03-26 10:19:29 +08:00
commit 44bbdf5f82
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using SHADE;
using SHADE;
using System;
using System.Collections.Generic;
using SHADE_Scripting.Audio;
@ -189,7 +189,7 @@ public class PlayerController : Script
float ratio = System.Math.Clamp(1 - (disSqr / (1 + disSqr)), 0, 1.0f);
float temp = (1 - ratio) * 0.00075f;
if (temp <= 0.0006f)
temp = 0.1f;
temp = 0.0075f;
silhouettePlayerRend.Material.SetProperty<float>("data.offset", temp);
silhouetteBagRend.Material.SetProperty<float>("data.offset", temp);
}