materialNeedsLights method
Implementation
bool materialNeedsLights(Material material) {
return material is MeshLambertMaterial ||
material is MeshToonMaterial ||
material is MeshPhongMaterial ||
material is MeshStandardMaterial ||
material is ShadowMaterial ||
(material is ShaderMaterial && material.lights == true);
}