* @private * @returns {p5.Framebuffer} A p5.Framebuffer set to match the size and settings * of the renderer's canvas. It will be created if it does not yet exist, and * reused if it does.
()
| 1162 | * reused if it does. |
| 1163 | */ |
| 1164 | _getTempFramebuffer() { |
| 1165 | if (!this._tempFramebuffer) { |
| 1166 | this._tempFramebuffer = new Framebuffer(this, { |
| 1167 | format: constants.UNSIGNED_BYTE, |
| 1168 | useDepth: this._pInst._glAttributes.depth, |
| 1169 | depthFormat: constants.UNSIGNED_INT, |
| 1170 | antialias: this._pInst._glAttributes.antialias, |
| 1171 | }); |
| 1172 | } |
| 1173 | return this._tempFramebuffer; |
| 1174 | } |
| 1175 | |
| 1176 | ////////////////////////////////////////////// |
| 1177 | // HASH | for geometry |