Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Oct 3, 2019
1 parent 791b888 commit 999e169
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/api-reference/deck.md
Expand Up @@ -203,6 +203,10 @@ gl context, will be autocreated if not supplied.

Additional options used when creating the WebGLContext. See [WebGL context attributes](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext).

##### `_framebuffer` (Object, optional)

(Experimental) Render to a custom frame buffer other than to screen.

##### `parameters` (Object, optional)

Expects an object with WebGL settings. This object will be passed to luma.gl's `setParameters` function to configure the WebGL context, e.g. to disable depth testing, change blending modes etc.
Expand Down
6 changes: 3 additions & 3 deletions modules/core/src/lib/deck-renderer.js
Expand Up @@ -53,9 +53,9 @@ export default class DeckRenderer {
effects
});

const target = framebuffer || (this.lastPostProcessEffect
? this.screenBuffer
: Framebuffer.getDefaultFramebuffer(this.gl));
const target =
framebuffer ||
(this.lastPostProcessEffect ? this.screenBuffer : Framebuffer.getDefaultFramebuffer(this.gl));

const renderStats = layerPass.render({
layers,
Expand Down
1 change: 0 additions & 1 deletion modules/core/src/passes/pick-layers-pass.js
Expand Up @@ -35,7 +35,6 @@ export default class PickLayersPass extends LayersPass {
return withParameters(
gl,
{
framebuffer: pickingFBO,
scissorTest: true,
scissor: [x, y, width, height],
clearColor: [0, 0, 0, 0],
Expand Down
2 changes: 1 addition & 1 deletion test/apps/framebuffer/app.js
Expand Up @@ -74,4 +74,4 @@ function onAfterRender() {
}

/* global document */
document.body.style.margin = '0px';
document.body.style.margin = '0px';

0 comments on commit 999e169

Please sign in to comment.