|
@@ -2893,11 +2893,11 @@ class Quaternion {
|
|
|
|
|
|
// assumes direction vectors vFrom and vTo are normalized
|
|
|
|
|
|
- const EPS = 0.000001;
|
|
|
-
|
|
|
let r = vFrom.dot( vTo ) + 1;
|
|
|
|
|
|
- if ( r < EPS ) {
|
|
|
+ if ( r < Number.EPSILON ) {
|
|
|
+
|
|
|
+ // vFrom and vTo point in opposite directions
|
|
|
|
|
|
r = 0;
|
|
|
|
|
@@ -8102,6 +8102,7 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
}
|
|
|
|
|
|
if ( this.size !== undefined ) data.size = this.size;
|
|
|
+ if ( this.shadowSide !== null ) data.shadowSide = this.shadowSide;
|
|
|
if ( this.sizeAttenuation !== undefined ) data.sizeAttenuation = this.sizeAttenuation;
|
|
|
|
|
|
if ( this.blending !== NormalBlending ) data.blending = this.blending;
|
|
@@ -8114,6 +8115,7 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
data.depthFunc = this.depthFunc;
|
|
|
data.depthTest = this.depthTest;
|
|
|
data.depthWrite = this.depthWrite;
|
|
|
+ data.colorWrite = this.colorWrite;
|
|
|
|
|
|
data.stencilWrite = this.stencilWrite;
|
|
|
data.stencilWriteMask = this.stencilWriteMask;
|
|
@@ -38046,6 +38048,7 @@ class MaterialLoader extends Loader {
|
|
|
if ( json.blending !== undefined ) material.blending = json.blending;
|
|
|
if ( json.combine !== undefined ) material.combine = json.combine;
|
|
|
if ( json.side !== undefined ) material.side = json.side;
|
|
|
+ if ( json.shadowSide !== undefined ) material.shadowSide = json.shadowSide;
|
|
|
if ( json.opacity !== undefined ) material.opacity = json.opacity;
|
|
|
if ( json.transparent !== undefined ) material.transparent = json.transparent;
|
|
|
if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
|