2
0
Mr.doob 7 жил өмнө
parent
commit
317f35d441
3 өөрчлөгдсөн 356 нэмэгдсэн , 342 устгасан
  1. 10 3
      build/three.js
  2. 336 336
      build/three.min.js
  3. 10 3
      build/three.module.js

+ 10 - 3
build/three.js

@@ -21608,7 +21608,12 @@
 
 		this.getCamera = function ( camera ) {
 
-			if ( device === null ) return camera;
+			if ( device === null ) {
+
+				camera.position.set( 0, scope.userHeight, 0 );
+				return camera;
+
+			}
 
 			device.depthNear = camera.near;
 			device.depthFar = camera.far;
@@ -24214,11 +24219,13 @@
 
 		function refreshUniformsPhysical( uniforms, material ) {
 
+			refreshUniformsStandard( uniforms, material );
+
+			uniforms.reflectivity.value = material.reflectivity; // also part of uniforms common
+
 			uniforms.clearCoat.value = material.clearCoat;
 			uniforms.clearCoatRoughness.value = material.clearCoatRoughness;
 
-			refreshUniformsStandard( uniforms, material );
-
 		}
 
 		function refreshUniformsDepth( uniforms, material ) {

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 336 - 336
build/three.min.js


+ 10 - 3
build/three.module.js

@@ -21602,7 +21602,12 @@ function WebVRManager( renderer ) {
 
 	this.getCamera = function ( camera ) {
 
-		if ( device === null ) return camera;
+		if ( device === null ) {
+
+			camera.position.set( 0, scope.userHeight, 0 );
+			return camera;
+
+		}
 
 		device.depthNear = camera.near;
 		device.depthFar = camera.far;
@@ -24208,11 +24213,13 @@ function WebGLRenderer( parameters ) {
 
 	function refreshUniformsPhysical( uniforms, material ) {
 
+		refreshUniformsStandard( uniforms, material );
+
+		uniforms.reflectivity.value = material.reflectivity; // also part of uniforms common
+
 		uniforms.clearCoat.value = material.clearCoat;
 		uniforms.clearCoatRoughness.value = material.clearCoatRoughness;
 
-		refreshUniformsStandard( uniforms, material );
-
 	}
 
 	function refreshUniformsDepth( uniforms, material ) {

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно