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

SPS particle depth sort #2961

Merged
merged 1 commit into from
Oct 16, 2017
Merged

SPS particle depth sort #2961

merged 1 commit into from
Oct 16, 2017

Conversation

jbousquie
Copy link
Contributor

// create a particle depth sort enabled SPS
var sps = new BABYLON.SolidParticleSystem("sps", scene, {enableDepthSort: true});
// then later only ...
sps.setParticles();   // and the particle are depth sorted each call
// We can skip the sorting at any time (or reactive it) : sps and camera not moving anymore
sps.depthSortParticles = false;  // true by default when enableDepthSort is set to true

@deltakosh
Copy link
Contributor

Woot! need a demo and a doc update :D

@deltakosh deltakosh merged commit cf9bb3c into BabylonJS:master Oct 16, 2017
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.

2 participants