xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Object's hasTransparency should be re-evaluated on shader changes #98

Closed csvurt closed 9 years ago

csvurt commented 9 years ago

A RenderObject's hasTransparency function is only evaluated when the object enters the ready queue, however shader changes (especially shader reassignments) could change the object's transparency state. This should be rechecked on shader changes to ensure the object is always in the correct render group (transparent or opaque).