Skip to content

Commit f18b73c

Browse files
committed
Remove commented out code for lights being drawn every frame
1 parent 7e7dce0 commit f18b73c

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

crates/processing_render/src/light.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ pub fn create(
2626
In((light_type, x, y, z)): In<(LightType, f32, f32, f32)>,
2727
mut commands: Commands,
2828
) -> Entity {
29-
// let light = Light {
30-
// light_type: light_type,
31-
// pos: Vec3::new(x, y, z),
32-
// };
33-
// commands.spawn(light).id()
34-
3529
match light_type {
3630
LightType::Directional => commands
3731
.spawn((DirectionalLight::default(), Transform::from_xyz(x, y, z)))

crates/processing_render/src/render/mod.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -235,25 +235,7 @@ pub fn flush_draw_commands(
235235
));
236236

237237
batch.draw_index += 1;
238-
} // DrawCommand::Light(entity) => {
239-
// let Some(light) = p_lights.get(entity).ok() else {
240-
// warn!("Could not find Light for entity {:?}", entity);
241-
// continue;
242-
// };
243-
244-
// flush_batch(&mut res, &mut batch);
245-
246-
// let pos = light.pos;
247-
// res.commands.spawn((
248-
// PointLight {
249-
// color: Color::srgba(1.0, 0.25, 0.44, 1.0),
250-
// ..default()
251-
// },
252-
// Transform::from_xyz(pos.x, pos.y, pos.z),
253-
// ));
254-
255-
// batch.draw_index += 1;
256-
// }
238+
}
257239
}
258240
}
259241

0 commit comments

Comments
 (0)