Browse Source

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

Mr.doob 12 years ago
parent
commit
0dfb49ae26
1 changed files with 6 additions and 2 deletions
  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
 			}
 		);