Explorar o código

WebGLRenderer: Making z sorting more stable. See #3315.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
0dfb49ae26
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/renderers/WebGLRenderer.js

+ 6 - 2
src/renderers/WebGLRenderer.js

@@ -4681,10 +4681,12 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		objlist.push(
 			{
+				id: null,
 				buffer: buffer,
 				object: object,
 				opaque: null,
-				transparent: null
+				transparent: null,
+				z: 0
 			}
 		);
 
@@ -4694,9 +4696,11 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		objlist.push(
 			{
+				id: null,
 				object: object,
 				opaque: null,
-				transparent: null
+				transparent: null,
+				z: 0
 			}
 		);