diff --git a/examples/3d/clearcoat.rs b/examples/3d/clearcoat.rs index 80194dbe61f26..30dd0120a3b61 100644 --- a/examples/3d/clearcoat.rs +++ b/examples/3d/clearcoat.rs @@ -23,9 +23,8 @@ use bevy::{ color::palettes::css::{BLUE, GOLD, WHITE}, core_pipeline::{tonemapping::Tonemapping::AcesFitted, Skybox}, math::vec3, - pbr::{CascadeShadowConfig, Cascades, CascadesVisibleEntities}, prelude::*, - render::{primitives::CascadesFrusta, texture::ImageLoaderSettings}, + render::texture::ImageLoaderSettings, }; /// The size of each sphere. @@ -184,19 +183,7 @@ fn spawn_scratched_gold_ball( /// Spawns a light. fn spawn_light(commands: &mut Commands) { - commands.spawn(( - PointLight { - color: WHITE.into(), - intensity: 100000.0, - ..default() - }, - // Add the cascades objects used by the `DirectionalLight`, since the - // user can toggle between a point light and a directional light. - CascadesFrusta::default(), - Cascades::default(), - CascadeShadowConfig::default(), - CascadesVisibleEntities::default(), - )); + commands.spawn(create_point_light()); } /// Spawns a camera with associated skybox and environment map.