Cut 6b: Brokkr drop_pod.glb, petal blow-off, retro VFX/audio/juice, drop HUD/camera, and GL3 Sion captures
This commit is contained in:
parent
c2f1e5bf90
commit
5af5d87e06
15 changed files with 1847 additions and 94 deletions
|
|
@ -15,7 +15,7 @@ public partial class DebrisSystem : Node3D
|
|||
private const float Gravity = -20f;
|
||||
private const float DefaultLifetime = 4.5f;
|
||||
private const float FadeDuration = 1.2f;
|
||||
private const int MaxActiveDebris = 96;
|
||||
private const int MaxActiveDebris = 256;
|
||||
|
||||
private sealed class DebrisPiece
|
||||
{
|
||||
|
|
@ -65,7 +65,8 @@ public partial class DebrisSystem : Node3D
|
|||
Vector3 inheritedVelocity,
|
||||
float roleIndex,
|
||||
float impulseScale = 1.0f,
|
||||
bool applyScorch = true)
|
||||
bool applyScorch = true,
|
||||
float lifetime = DefaultLifetime)
|
||||
{
|
||||
if (mesh is null || mesh.GetSurfaceCount() == 0)
|
||||
{
|
||||
|
|
@ -117,7 +118,7 @@ public partial class DebrisSystem : Node3D
|
|||
Scorch = applyScorch ? 0.85f : 0.15f,
|
||||
HeatGlow = applyScorch ? 0.45f : 0f,
|
||||
Age = 0f,
|
||||
Lifetime = DefaultLifetime,
|
||||
Lifetime = lifetime > 0.2f ? lifetime : DefaultLifetime,
|
||||
Settled = false
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue