@@ -12,7 +12,7 @@ impl Plugin for LightPlugin {
1212}
1313
1414pub fn create_directional (
15- In ( ( entity, px , py , pz , color, illuminance) ) : In < ( Entity , f32 , f32 , f32 , Color , f32 ) > ,
15+ In ( ( entity, color, illuminance) ) : In < ( Entity , Color , f32 ) > ,
1616 mut commands : Commands ,
1717 graphics : Query < & RenderLayers , With < Graphics > > ,
1818) -> Result < Entity , ProcessingError > {
@@ -26,23 +26,13 @@ pub fn create_directional(
2626 color,
2727 ..default ( )
2828 } ,
29- Transform :: from_xyz ( px, py, pz) ,
3029 layer. clone ( ) ,
3130 ) )
3231 . id ( ) )
3332}
3433
3534pub fn create_point (
36- In ( ( entity, px, py, pz, color, intensity, range, radius) ) : In < (
37- Entity ,
38- f32 ,
39- f32 ,
40- f32 ,
41- Color ,
42- f32 ,
43- f32 ,
44- f32 ,
45- ) > ,
35+ In ( ( entity, color, intensity, range, radius) ) : In < ( Entity , Color , f32 , f32 , f32 ) > ,
4636 mut commands : Commands ,
4737 graphics : Query < & RenderLayers , With < Graphics > > ,
4838) -> Result < Entity , ProcessingError > {
@@ -58,18 +48,14 @@ pub fn create_point(
5848 radius,
5949 ..default ( )
6050 } ,
61- Transform :: from_xyz ( px, py, pz) ,
6251 layer. clone ( ) ,
6352 ) )
6453 . id ( ) )
6554}
6655
6756pub fn create_spot (
68- In ( ( entity, px , py , pz , color, intensity, range, radius, inner_angle, outer_angle) ) : In < (
57+ In ( ( entity, color, intensity, range, radius, inner_angle, outer_angle) ) : In < (
6958 Entity ,
70- f32 ,
71- f32 ,
72- f32 ,
7359 Color ,
7460 f32 ,
7561 f32 ,
@@ -94,7 +80,6 @@ pub fn create_spot(
9480 outer_angle,
9581 ..default ( )
9682 } ,
97- Transform :: from_xyz ( px, py, pz) ,
9883 layer. clone ( ) ,
9984 ) )
10085 . id ( ) )
0 commit comments