Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upChange lightmapper-reserved bits to larger values #851
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Lightmapper reserves first 3 bits to filter dynamic lights: https://github.com/playcanvas/engine/blob/master/src/scene/lightmapper.js#L4
It would be better to change their values to something larger, because it's tempting for users to change the first bits when they're working with bit masks, and then lightmapper can unexpectedly override those.