Selaa lähdekoodia

WebGLRenderer: Reset _currentGeometryGroupHash at the beginning of the frame.

Mr.doob 10 vuotta sitten
vanhempi
commit
8fba64ca66
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/renderers/WebGLRenderer.js

+ 1 - 0
src/renderers/WebGLRenderer.js

@@ -3352,6 +3352,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		// reset caching for this frame
 
+		_currentGeometryGroupHash = - 1;
 		_currentMaterialId = - 1;
 		_currentCamera = null;
 		_lightsNeedUpdate = true;