facemask-plugin
facemask-plugin copied to clipboard
Fix Depth Bucket Sorting
This PR improves/fixes several aspects of sorting transparent objects:
- Fixes an issue where object insertion in the list was not happening correctly
- Adds code to avoid creating a loop in depth list and will also log this as an error
- Considers depth bias for all the cases when sorting
- Simplifies the sorting code to make it more readable