javascript - Three.js - sprite depths rendering backwards in r70+ -
it looks broke r70+ regarding z-depth of sprites.
here jsfiddle works perfect r69.
here same jsfiddle except using r71. can see when scene rotates, depths of sprites not shown correctly. half time rotated view wrong z-depths.
is bug or new need add missed?
i've tried variations of common commands below , nothing seems work around used to.
var shadermaterial = new three.shadermaterial({ ... depthtest: false, depthwrite: false, transparent: true }); particlesystem.sortparticles = true;
i'm aware of new renderdepth, solution seems unrelated , doesn't explain why break previous behaviour. don't need continually update renderdepths manually camera angles we?
pointcloud.sortparticles
removed in three.js r70; see this commit.
in original example (without transparency), can desired behavior enabling depth test material:
var shadermaterial = new three.shadermaterial({ ... depthtest: true });
in updated example (with transparency), it's necessary sort particles in three.js r70.
note three.js still handles z-sorting when rendering three.sprite objects. worth investigating.
Comments
Post a Comment