소스 검색

Updated builds.

Mr.doob 7 년 전
부모
커밋
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 ) {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.