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

WebGLRenderTarget and setViewport and setScissor #6022

Closed
bunnybones1 opened this issue Feb 4, 2015 · 1 comment
Closed

WebGLRenderTarget and setViewport and setScissor #6022

bunnybones1 opened this issue Feb 4, 2015 · 1 comment

Comments

@bunnybones1
Copy link
Contributor

I'm having trouble with setViewport and setScissor when I try to use it with WebGLRenderTarget.
Here's an example:
http://jsfiddle.net/3da48Luu/1/
I've gone through three.js to the best of my abilities, and feel like it could actually be a webGL bug, but I'm just not sure.
The quick workaround to make setViewport and setScissor work is to call the offending render twice.

@bunnybones1
Copy link
Contributor Author

I've figured it out. I need to run setRenderTarget before running setViewport, which I guess operates on the last bound renderTarget.
http://jsfiddle.net/3da48Luu/2/

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

No branches or pull requests

1 participant