|
@@ -1463,20 +1463,10 @@ function WebGLRenderer( parameters ) {
|
|
releaseMaterialProgramReference( material );
|
|
releaseMaterialProgramReference( material );
|
|
|
|
|
|
} else if ( lightsHash.stateID !== lightsStateHash.stateID ||
|
|
} else if ( lightsHash.stateID !== lightsStateHash.stateID ||
|
|
- lightsHash.directionalLength !== lightsStateHash.directionalLength ||
|
|
|
|
- lightsHash.pointLength !== lightsStateHash.pointLength ||
|
|
|
|
- lightsHash.spotLength !== lightsStateHash.spotLength ||
|
|
|
|
- lightsHash.rectAreaLength !== lightsStateHash.rectAreaLength ||
|
|
|
|
- lightsHash.hemiLength !== lightsStateHash.hemiLength ||
|
|
|
|
- lightsHash.shadowsLength !== lightsStateHash.shadowsLength ) {
|
|
|
|
|
|
+ lightsHash.value !== lightsStateHash.directionalLength ) {
|
|
|
|
|
|
lightsHash.stateID = lightsStateHash.stateID;
|
|
lightsHash.stateID = lightsStateHash.stateID;
|
|
- lightsHash.directionalLength = lightsStateHash.directionalLength;
|
|
|
|
- lightsHash.pointLength = lightsStateHash.pointLength;
|
|
|
|
- lightsHash.spotLength = lightsStateHash.spotLength;
|
|
|
|
- lightsHash.rectAreaLength = lightsStateHash.rectAreaLength;
|
|
|
|
- lightsHash.hemiLength = lightsStateHash.hemiLength;
|
|
|
|
- lightsHash.shadowsLength = lightsStateHash.shadowsLength;
|
|
|
|
|
|
+ lightsHash.value = lightsStateHash.value;
|
|
|
|
|
|
programChange = false;
|
|
programChange = false;
|
|
|
|
|
|
@@ -1584,12 +1574,7 @@ function WebGLRenderer( parameters ) {
|
|
}
|
|
}
|
|
|
|
|
|
lightsHash.stateID = lightsStateHash.stateID;
|
|
lightsHash.stateID = lightsStateHash.stateID;
|
|
- lightsHash.directionalLength = lightsStateHash.directionalLength;
|
|
|
|
- lightsHash.pointLength = lightsStateHash.pointLength;
|
|
|
|
- lightsHash.spotLength = lightsStateHash.spotLength;
|
|
|
|
- lightsHash.rectAreaLength = lightsStateHash.rectAreaLength;
|
|
|
|
- lightsHash.hemiLength = lightsStateHash.hemiLength;
|
|
|
|
- lightsHash.shadowsLength = lightsStateHash.shadowsLength;
|
|
|
|
|
|
+ lightsHash.value = lightsStateHash.value;
|
|
|
|
|
|
if ( material.lights ) {
|
|
if ( material.lights ) {
|
|
|
|
|
|
@@ -1661,12 +1646,7 @@ function WebGLRenderer( parameters ) {
|
|
material.needsUpdate = true;
|
|
material.needsUpdate = true;
|
|
|
|
|
|
} else if ( material.lights && ( lightsHash.stateID !== lightsStateHash.stateID ||
|
|
} else if ( material.lights && ( lightsHash.stateID !== lightsStateHash.stateID ||
|
|
- lightsHash.directionalLength !== lightsStateHash.directionalLength ||
|
|
|
|
- lightsHash.pointLength !== lightsStateHash.pointLength ||
|
|
|
|
- lightsHash.spotLength !== lightsStateHash.spotLength ||
|
|
|
|
- lightsHash.rectAreaLength !== lightsStateHash.rectAreaLength ||
|
|
|
|
- lightsHash.hemiLength !== lightsStateHash.hemiLength ||
|
|
|
|
- lightsHash.shadowsLength !== lightsStateHash.shadowsLength ) ) {
|
|
|
|
|
|
+ lightsHash.value !== lightsStateHash.value ) ) {
|
|
|
|
|
|
material.needsUpdate = true;
|
|
material.needsUpdate = true;
|
|
|
|
|