(...args: any[])
| 872 | this.init(); |
| 873 | } |
| 874 | update(...args: any[]) { |
| 875 | const { vel, pressure } = (args[0] || {}) as { |
| 876 | vel?: any; |
| 877 | pressure?: any; |
| 878 | }; |
| 879 | if (this.uniforms && vel && pressure) { |
| 880 | this.uniforms.velocity.value = vel.texture; |
| 881 | this.uniforms.pressure.value = pressure.texture; |
| 882 | } |
| 883 | super.update(); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | class Simulation { |