I found that when there are linesegment models in the scene, there are many jagged lines that cannot be eliminated...
Closed this issue · 3 comments
liuyehua commented
I found that when there are linesegment models in the scene, there are many jagged lines that cannot be eliminated...
code
let child = [];
sponza.traverse(object => {
if (object.material) {
object.material.envMap = environment;
child.push(object)
}
})
child.forEach(m=>{
m.add(new THREE.LineSegments(new THREE.EdgesGeometry(m.geometry,90)))
})
such as
liuyehua commented
Both SMAA and fxaa are invalid
N8python commented
I'm afraid post-processing ambient occlusion and (in general) SMAA/FXAA don't work with just lines. Disabling dpeth-write on the lines should help the AO work though.
liuyehua commented
thank you, it works