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

GPU particle example with alpha #6289

Open
micuat opened this issue May 14, 2019 · 0 comments
Open

GPU particle example with alpha #6289

micuat opened this issue May 14, 2019 · 0 comments

Comments

@micuat
Copy link

micuat commented May 14, 2019

It's not obvious from the result but the GPU particle example doesn't use alpha for the render fbo so you can't layer on top of other stuff. Simply change this line to GL_RGBA32F should be enough

https://github.com/openframeworks/openFrameworks/blob/master/examples/gl/gpuParticleSystemExample/src/ofApp.cpp#L74

(I personally prefer to use alpha channel on ping pong fbos as well so you can pass other attributes such as particle age - but maybe this is a stretch for this example)

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