|
@@ -31,6 +31,8 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
var morphInfluences = new Float32Array( 8 );
|
|
var morphInfluences = new Float32Array( 8 );
|
|
|
|
|
|
|
|
+ var emptyTexture = new THREE.Texture();
|
|
|
|
+
|
|
var sprites = [];
|
|
var sprites = [];
|
|
var lensFlares = [];
|
|
var lensFlares = [];
|
|
|
|
|
|
@@ -2339,7 +2341,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
intensity = light.intensity;
|
|
intensity = light.intensity;
|
|
distance = light.distance;
|
|
distance = light.distance;
|
|
|
|
|
|
- shadowMap = ( light.shadow && light.shadow.map ) ? light.shadow.map.texture : null;
|
|
|
|
|
|
+ shadowMap = ( light.shadow && light.shadow.map ) ? light.shadow.map.texture : emptyTexture;
|
|
|
|
|
|
if ( light instanceof THREE.AmbientLight ) {
|
|
if ( light instanceof THREE.AmbientLight ) {
|
|
|
|
|