|
@@ -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 ) {
|