* * @desc replace output textures where arguments my be the same values
()
| 696 | * @desc replace output textures where arguments my be the same values |
| 697 | */ |
| 698 | _replaceOutputTexture() { |
| 699 | if (this.texture.beforeMutate() || this._textureSwitched) { |
| 700 | const gl = this.context; |
| 701 | gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, this.texture.texture, 0); |
| 702 | this._textureSwitched = false; |
| 703 | } |
| 704 | } |
| 705 | |
| 706 | /** |
| 707 | * @desc Setup output texture |