You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
render(target){// render the 3D scene firstthis.threeRenderer.render(this.threeScene,this.threeCamera,target);this.threeRenderer.autoClear=false;// then render the 2D overlay on top, without clearing the Canvas in-betweenthis.threeRenderer.render(this.overlayScene,this.overlayCamera,target);this.threeRenderer.autoClear=true;}
Can we leave autoclear on? It seems autoclear is only supposed to be used when rendering multiple render calls over one another. Also leaving the autoclear on solved bugs in phetsims/density-buoyancy-common#81
It seemed in density-buoyancy-common that the autoclear was disabled in order to let the background show through, but that can be accomplished with Color.TRANSPARENT background + clear and no rendering artifacts.
The text was updated successfully, but these errors were encountered:
Discovered in phetsims/density-buoyancy-common#81 @zepumph and I saw this code in Molecule Shapes:
Can we leave autoclear on? It seems autoclear is only supposed to be used when rendering multiple render calls over one another. Also leaving the autoclear on solved bugs in phetsims/density-buoyancy-common#81
It seemed in density-buoyancy-common that the autoclear was disabled in order to let the background show through, but that can be accomplished with Color.TRANSPARENT background + clear and no rendering artifacts.
The text was updated successfully, but these errors were encountered: