Przeglądaj źródła

Updated builds.

Mr.doob 3 lat temu
rodzic
commit
5ffa72a3b7
4 zmienionych plików z 23 dodań i 6 usunięć
  1. 8 3
      build/three.cjs
  2. 8 3
      build/three.js
  3. 0 0
      build/three.min.js
  4. 7 0
      build/three.module.js

+ 8 - 3
build/three.cjs

@@ -10826,8 +10826,9 @@ function WebGLBackground(renderer, cubemaps, state, objects, alpha, premultiplie
 				currentBackground = background;
 				currentBackgroundVersion = background.version;
 				currentTonemapping = renderer.toneMapping;
-			} // push to the pre-sorted opaque render list
+			}
 
+			boxMesh.layers.enableAll(); // push to the pre-sorted opaque render list
 
 			renderList.unshift(boxMesh, boxMesh.geometry, boxMesh.material, 0, 0, null);
 		} else if (background && background.isTexture) {
@@ -10865,8 +10866,9 @@ function WebGLBackground(renderer, cubemaps, state, objects, alpha, premultiplie
 				currentBackground = background;
 				currentBackgroundVersion = background.version;
 				currentTonemapping = renderer.toneMapping;
-			} // push to the pre-sorted opaque render list
+			}
 
+			planeMesh.layers.enableAll(); // push to the pre-sorted opaque render list
 
 			renderList.unshift(planeMesh, planeMesh.geometry, planeMesh.material, 0, 0, null);
 		}
@@ -17964,7 +17966,10 @@ function WebGLUtils(gl, extensions, capabilities) {
 			} else {
 				return null;
 			}
-		}
+		} // if "p" can't be resolved, assume the user defines a WebGL constant as a string (fallback/workaround for packed RGB formats)
+
+
+		return gl[p] !== undefined ? gl[p] : null;
 	}
 
 	return {

+ 8 - 3
build/three.js

@@ -10828,8 +10828,9 @@
 					currentBackground = background;
 					currentBackgroundVersion = background.version;
 					currentTonemapping = renderer.toneMapping;
-				} // push to the pre-sorted opaque render list
+				}
 
+				boxMesh.layers.enableAll(); // push to the pre-sorted opaque render list
 
 				renderList.unshift(boxMesh, boxMesh.geometry, boxMesh.material, 0, 0, null);
 			} else if (background && background.isTexture) {
@@ -10867,8 +10868,9 @@
 					currentBackground = background;
 					currentBackgroundVersion = background.version;
 					currentTonemapping = renderer.toneMapping;
-				} // push to the pre-sorted opaque render list
+				}
 
+				planeMesh.layers.enableAll(); // push to the pre-sorted opaque render list
 
 				renderList.unshift(planeMesh, planeMesh.geometry, planeMesh.material, 0, 0, null);
 			}
@@ -17966,7 +17968,10 @@
 				} else {
 					return null;
 				}
-			}
+			} // if "p" can't be resolved, assume the user defines a WebGL constant as a string (fallback/workaround for packed RGB formats)
+
+
+			return gl[p] !== undefined ? gl[p] : null;
 		}
 
 		return {

Plik diff jest za duży
+ 0 - 0
build/three.min.js


+ 7 - 0
build/three.module.js

@@ -14033,6 +14033,8 @@ function WebGLBackground( renderer, cubemaps, state, objects, alpha, premultipli
 
 			}
 
+			boxMesh.layers.enableAll();
+
 			// push to the pre-sorted opaque render list
 			renderList.unshift( boxMesh, boxMesh.geometry, boxMesh.material, 0, 0, null );
 
@@ -14093,6 +14095,7 @@ function WebGLBackground( renderer, cubemaps, state, objects, alpha, premultipli
 
 			}
 
+			planeMesh.layers.enableAll();
 
 			// push to the pre-sorted opaque render list
 			renderList.unshift( planeMesh, planeMesh.geometry, planeMesh.material, 0, 0, null );
@@ -24387,6 +24390,10 @@ function WebGLUtils( gl, extensions, capabilities ) {
 
 		}
 
+		// if "p" can't be resolved, assume the user defines a WebGL constant as a string (fallback/workaround for packed RGB formats)
+
+		return ( gl[ p ] !== undefined ) ? gl[ p ] : null;
+
 	}
 
 	return { convert: convert };

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików