how is it always wrong lmao
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user