Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
44bbdf5f82
|
@ -1,4 +1,4 @@
|
||||||
using SHADE;
|
using SHADE;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SHADE_Scripting.Audio;
|
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 ratio = System.Math.Clamp(1 - (disSqr / (1 + disSqr)), 0, 1.0f);
|
||||||
float temp = (1 - ratio) * 0.00075f;
|
float temp = (1 - ratio) * 0.00075f;
|
||||||
if (temp <= 0.0006f)
|
if (temp <= 0.0006f)
|
||||||
temp = 0.1f;
|
temp = 0.0075f;
|
||||||
silhouettePlayerRend.Material.SetProperty<float>("data.offset", temp);
|
silhouettePlayerRend.Material.SetProperty<float>("data.offset", temp);
|
||||||
silhouetteBagRend.Material.SetProperty<float>("data.offset", temp);
|
silhouetteBagRend.Material.SetProperty<float>("data.offset", temp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue