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

Make readRenderTargetPixels() compatible with float extensions #7278

Merged
merged 1 commit into from
Oct 4, 2015

Conversation

nraynaud
Copy link
Contributor

@nraynaud nraynaud commented Oct 3, 2015

support WEBGL_color_buffer_float and EXT_color_buffer_half_float
also fixed a cleanup bug were the function would exit leaving the wrong buffer bound

support WEBGL_color_buffer_float and EXT_color_buffer_half_float
also fixed a cleanup bug were the function would exit leaving the wrong buffer bound
@mrdoob
Copy link
Owner

mrdoob commented Oct 3, 2015

@kintel looks good?

@kintel
Copy link
Contributor

kintel commented Oct 4, 2015

I don't see anything wrong with it, but I also don't have any personal experience with pixel readback in WebGL. A demo is worth a thousand lines of code : )

@mrdoob
Copy link
Owner

mrdoob commented Oct 4, 2015

Yeah, that's a good point.
@nraynaud Any chance you could provide an example? It'll also help for making sure we don't break this in the future.

@nraynaud
Copy link
Contributor Author

nraynaud commented Oct 4, 2015

I'll do it, but it will be a demo that only works on Chrome and Firefox (at present times), with each exercising a different code path. I have zero fallback for Safari and mobile.

@kintel
Copy link
Contributor

kintel commented Oct 4, 2015

@nraynaud Chrome supports color_buffer_float? since when?

@nraynaud
Copy link
Contributor Author

nraynaud commented Oct 4, 2015

@kintel no, but it can read floats through "IMPLEMENTATION_COLOR_READ_TYPE", I sent you a pull request a few days ago.

mrdoob added a commit that referenced this pull request Oct 4, 2015
Make readRenderTargetPixels() compatible with float extensions
@mrdoob mrdoob merged commit 11f03ed into mrdoob:dev Oct 4, 2015
@mrdoob
Copy link
Owner

mrdoob commented Oct 4, 2015

Thanks!

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