This commit is contained in:
rnentjes
2014-01-17 13:19:07 +01:00
parent 9f55bd8051
commit 11ceadd67f
4 changed files with 123 additions and 59 deletions

View File

@@ -26,7 +26,7 @@ public class TestJogl {
GLWindow glWindow = GLWindow.create(caps);
glWindow.setTitle("jogl-triangle");
glWindow.setTitle("jogl-compute-shaders-fireworks");
glWindow.setSize(800, 800);

View File

@@ -19,7 +19,7 @@ void main() {
if (gid < last && last > 0) {
if (e[gid].color.a == 0.0) {
uint old = atomicCounterDecrement(lastCounter) - 1;
uint old = atomicCounterDecrement(lastCounter);
e[gid].positionVelocity = e[old].positionVelocity;
e[gid].color = e[old].color;