Processing 我如何避免在相交的高细节球体上出现这种半透明度故障?
失败,给予 而不是像预期的那样在中线的左侧变亮 我怎样才能解决这个问题 一个线索可能是Processing 我如何避免在相交的高细节球体上出现这种半透明度故障?,processing,Processing,失败,给予 而不是像预期的那样在中线的左侧变亮 我怎样才能解决这个问题 一个线索可能是 void setup() { size(600, 480, P3D);hint(ENABLE_DEPTH_SORT); } void draw() { background(0); translate(width/2, height/2); fill(color(255,255,255),84); strokeWeight(0); sphereDetail(60); trans
void setup() {
size(600, 480, P3D);hint(ENABLE_DEPTH_SORT);
}
void draw()
{
background(0);
translate(width/2, height/2); fill(color(255,255,255),84);
strokeWeight(0);
sphereDetail(60);
translate(-40,0,1);sphere(80);
translate(2*40,0,0);sphere(80);
// Fails with lightening absent: http://i.imgur.com/1OmcHvL.png
}
给予
注意:请不要将此问题误认为是的重复。添加
translate(2*40,100,0);sphere(80);
这在这种情况下没有副作用,但在其他情况下无疑会有副作用
hint(DISABLE_DEPTH_TEST);