@@ -25,7 +25,7 @@ fn setup(
25
25
commands. spawn_bundle ( PbrBundle {
26
26
mesh : meshes. add ( Mesh :: from ( shape:: Plane { size : 6.0 } ) ) ,
27
27
material : materials. add ( Color :: rgb ( 0.3 , 0.5 , 0.3 ) . into ( ) ) ,
28
- ..Default :: default ( )
28
+ ..default ( )
29
29
} ) ;
30
30
// transparent sphere, using alpha_mode: Mask
31
31
commands. spawn_bundle ( PbrBundle {
@@ -45,7 +45,7 @@ fn setup(
45
45
..default ( )
46
46
} ) ,
47
47
transform : Transform :: from_xyz ( 1.0 , 0.5 , -1.5 ) ,
48
- ..Default :: default ( )
48
+ ..default ( )
49
49
} ) ;
50
50
// transparent cube, using alpha_mode: Blend
51
51
commands. spawn_bundle ( PbrBundle {
@@ -55,7 +55,7 @@ fn setup(
55
55
// automatically set to `Blend` if the alpha channel is anything lower than 1.0.
56
56
material : materials. add ( Color :: rgba ( 0.5 , 0.5 , 1.0 , 0.0 ) . into ( ) ) ,
57
57
transform : Transform :: from_xyz ( 0.0 , 0.5 , 0.0 ) ,
58
- ..Default :: default ( )
58
+ ..default ( )
59
59
} ) ;
60
60
// sphere
61
61
commands. spawn_bundle ( PbrBundle {
@@ -65,22 +65,22 @@ fn setup(
65
65
} ) ) ,
66
66
material : materials. add ( Color :: rgb ( 0.7 , 0.2 , 0.1 ) . into ( ) ) ,
67
67
transform : Transform :: from_xyz ( 0.0 , 0.5 , -1.5 ) ,
68
- ..Default :: default ( )
68
+ ..default ( )
69
69
} ) ;
70
70
// light
71
71
commands. spawn_bundle ( PointLightBundle {
72
72
point_light : PointLight {
73
73
intensity : 1500.0 ,
74
74
shadows_enabled : true ,
75
- ..Default :: default ( )
75
+ ..default ( )
76
76
} ,
77
77
transform : Transform :: from_xyz ( 4.0 , 8.0 , 4.0 ) ,
78
- ..Default :: default ( )
78
+ ..default ( )
79
79
} ) ;
80
80
// camera
81
81
commands. spawn_bundle ( Camera3dBundle {
82
82
transform : Transform :: from_xyz ( -2.0 , 3.0 , 5.0 ) . looking_at ( Vec3 :: ZERO , Vec3 :: Y ) ,
83
- ..Default :: default ( )
83
+ ..default ( )
84
84
} ) ;
85
85
}
86
86
0 commit comments