(...args: any[])
| 806 | this.init(); |
| 807 | } |
| 808 | update(...args: any[]) { |
| 809 | const { vel } = (args[0] || {}) as { vel?: any }; |
| 810 | if (this.uniforms && vel) { |
| 811 | this.uniforms.velocity.value = vel.texture; |
| 812 | } |
| 813 | super.update(); |
| 814 | } |
| 815 | } |
| 816 | |
| 817 | class Poisson extends ShaderPass { |