pex-renderer
pex-renderer copied to clipboard
Allow depthTest and depthWrite in line material
Currently they are hardcoded
getPipelineOptions() {
return { depthWrite: true, depthTest: true };
},
//should be
getPipelineOptions(entity) {
return {
depthWrite: !!entity.material.depthWrite,
depthTest: !!entity.material.depthTest
};
},
allowing you for example debug mesh skeleton