508509510511512513514515516517518
// if (ConstantsAndSettings.getInstance().isOpenGlMode()){ if (this.isDrawSmooth()) pa.smooth(); else pa.noSmooth(); // } //NOTE: if noFill() and noStroke()->absolutely nothing will be drawn-even when texture is set if (this.isNoFill()) pa.noFill();
570571572573574575576577578579580
} } if (!this.isNoFill()){ pa.noStroke(); pa.noSmooth(); pa.fill(fillColor.getR(), fillColor.getG(), fillColor.getB(), fillColor.getAlpha()); this.drawWithProcessing(pa, this.getVerticesLocal(), PApplet.TRIANGLES, true); }
583584585586587588589590591592593
//reSet the tint values to defaults pa.tint(255, 255, 255, 255); if (/*ConstantsAndSettings.getInstance().isOpenGlMode() && */ this.isDrawSmooth()) pa.noSmooth(); //because of tesselation bug } if (drawNormals) this.drawNormals(); }