(props: LayersPassRenderOptions | PickLayersPassRenderOptions)
| 47 | } | null = null; |
| 48 | |
| 49 | render(props: LayersPassRenderOptions | PickLayersPassRenderOptions): { |
| 50 | decodePickingColor: PickingColorDecoder | null; |
| 51 | stats: RenderStats[]; |
| 52 | } { |
| 53 | if ('pickingFBO' in props) { |
| 54 | // When drawing into an off-screen buffer, use the alpha channel to encode layer index |
| 55 | return this._drawPickingBuffer(props); |
| 56 | } |
| 57 | // When drawing to screen (debug mode), do not use the alpha channel so that result is always visible |
| 58 | const stats = super._render(props); |
| 59 | return {decodePickingColor: null, stats}; |
| 60 | } |
| 61 | |
| 62 | // Private |
| 63 | // Draws list of layers and viewports into the picking buffer |
nothing calls this directly
no test coverage detected