|
@@ -1727,9 +1727,13 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( object.receiveShadow && ! material._shadowPass ) {
|
|
|
+ if ( _this.shadowMap.enabled ) {
|
|
|
|
|
|
- refreshUniformsShadow( m_uniforms, lights, camera );
|
|
|
+ if ( object.receiveShadow && ! material._shadowPass ) {
|
|
|
+
|
|
|
+ refreshUniformsShadow( m_uniforms, lights, camera );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|