Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental renderer updates for multiple viewports #5225

Merged
merged 5 commits into from
Apr 27, 2017

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Apr 20, 2017

2D is rendered with either one or two viewports depending on whether the longitude line at 180 degrees is visible. This computes the two viewports from the pass state viewport instead of the canvas dimensions.

All commands that copy from a post process framebuffer now use the scissor test to only copy the portion of the texture written to. The idea is that multiple scenes/viewports can use the same post process resources (textures, fbos, etc.) and just change the render state. The alternative was to create a viewport sized texture for each viewport.

@pjcozzi pjcozzi mentioned this pull request Apr 20, 2017
53 tasks
@@ -54,6 +54,9 @@ define([
this._viewport = new BoundingRectangle();
this._rs = undefined;

this._useScissorTest = undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throughout, _useScissorTest is a boolean, right? Initialize it as such, e.g., = false, unless this creates an issue.

@pjcozzi
Copy link
Contributor

pjcozzi commented Apr 20, 2017

LGTM.

@lilleyse can you review this too?

@lilleyse
Copy link
Contributor

The cardboard demo is missing one side, otherwise looks good!

@bagnell
Copy link
Contributor Author

bagnell commented Apr 26, 2017

@lilleyse Fixed. This is ready for another look.

@lilleyse
Copy link
Contributor

Good now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants