Merge pull request #585 from tntljc/master
Fix some synchronization flaws
This commit is contained in:
commit
2a5d7df56e
3 changed files with 50 additions and 17 deletions
|
|
@ -62,6 +62,9 @@ void main()
|
|||
vec3 len = other.xyz - position.xyz;
|
||||
acceleration.xyz += GRAVITY * len * other.w / pow(dot(len, len) + SOFTEN, POWER);
|
||||
}
|
||||
|
||||
memoryBarrierShared();
|
||||
barrier();
|
||||
}
|
||||
|
||||
particles[index].vel.xyz += ubo.deltaT * acceleration.xyz;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue