|
@@ -1653,10 +1653,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( material instanceof THREE.MeshPhongMaterial ||
|
|
|
- material instanceof THREE.MeshLambertMaterial ||
|
|
|
- material instanceof THREE.MeshStandardMaterial ||
|
|
|
- material.lights ) {
|
|
|
+ if ( material.lights ) {
|
|
|
|
|
|
// store the light setup it was created for
|
|
|
|
|
@@ -1886,10 +1883,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
if ( refreshMaterial ) {
|
|
|
|
|
|
- if ( material instanceof THREE.MeshPhongMaterial ||
|
|
|
- material instanceof THREE.MeshLambertMaterial ||
|
|
|
- material instanceof THREE.MeshStandardMaterial ||
|
|
|
- material.lights ) {
|
|
|
+ if ( material.lights ) {
|
|
|
|
|
|
// the current material requires lighting info
|
|
|
|