(...args: any[])
| 673 | this.scene!.add(this.line); |
| 674 | } |
| 675 | update(...args: any[]) { |
| 676 | const { dt, isBounce, BFECC } = (args[0] || {}) as { |
| 677 | dt?: number; |
| 678 | isBounce?: boolean; |
| 679 | BFECC?: boolean; |
| 680 | }; |
| 681 | if (!this.uniforms) return; |
| 682 | if (typeof dt === "number") this.uniforms.dt.value = dt; |
| 683 | if (typeof isBounce === "boolean") this.line.visible = isBounce; |
| 684 | if (typeof BFECC === "boolean") this.uniforms.isBFECC.value = BFECC; |
| 685 | super.update(); |
| 686 | } |
| 687 | } |
| 688 | |
| 689 | class ExternalForce extends ShaderPass { |