materialNeedsLights method

bool materialNeedsLights(
  1. Material material
)

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);
}