how is it always wrong lmao

This commit is contained in:
FURRO404
2026-06-21 07:35:22 -07:00
parent 38c11d83ee
commit 9851fa1e4b
+1 -1
View File
@@ -489,7 +489,7 @@ export default class ReplayCanvas3D {
const value = THREE.MathUtils.clamp(this._captureValueAt(zone, this.currentT), -100, 100) const value = THREE.MathUtils.clamp(this._captureValueAt(zone, this.currentT), -100, 100)
const amount = Math.abs(value) / 100 const amount = Math.abs(value) / 100
fill.visible = value !== 0 fill.visible = value !== 0
fill.material.color.set(value > 0 ? WIN_COLOR : value < 0 ? LOSE_COLOR : 0xd8dee9) fill.material.color.set(value > 0 ? LOSE_COLOR : value < 0 ? WIN_COLOR : 0xd8dee9)
fill.material.opacity = value === 0 ? 0 : 0.18 + amount * 0.34 fill.material.opacity = value === 0 ? 0 : 0.18 + amount * 0.34
const s = value === 0 ? 0 : Math.sqrt(amount) const s = value === 0 ? 0 : Math.sqrt(amount)
fill.scale.set(s, s, 1) fill.scale.set(s, s, 1)