* Performs initialization tasks. * * @param {WebGLRenderer} renderer - The renderer. * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not. * @param {Number} frameBufferType - The type of the main frame buffers.
(renderer, alpha, frameBufferType)
| 809 | */ |
| 810 | |
| 811 | initialize(renderer, alpha, frameBufferType) { |
| 812 | |
| 813 | // No need for high precision: the blur pass operates on a mask texture. |
| 814 | this.blurPass.initialize(renderer, alpha, UnsignedByteType); |
| 815 | |
| 816 | if(frameBufferType !== undefined) { |
| 817 | |
| 818 | // These passes ignore the buffer type. |
| 819 | this.depthPass.initialize(renderer, alpha, frameBufferType); |
| 820 | this.maskPass.initialize(renderer, alpha, frameBufferType); |
| 821 | this.outlinePass.initialize(renderer, alpha, frameBufferType); |
| 822 | |
| 823 | } |
| 824 | |
| 825 | } |
| 826 | |
| 827 | } |
nothing calls this directly
no test coverage detected