@@ -25,7 +25,7 @@ fn setup(
2525 commands. spawn_bundle ( PbrBundle {
2626 mesh : meshes. add ( Mesh :: from ( shape:: Plane { size : 6.0 } ) ) ,
2727 material : materials. add ( Color :: rgb ( 0.3 , 0.5 , 0.3 ) . into ( ) ) ,
28- ..Default :: default ( )
28+ ..default ( )
2929 } ) ;
3030 // transparent sphere, using alpha_mode: Mask
3131 commands. spawn_bundle ( PbrBundle {
@@ -45,7 +45,7 @@ fn setup(
4545 ..default ( )
4646 } ) ,
4747 transform : Transform :: from_xyz ( 1.0 , 0.5 , -1.5 ) ,
48- ..Default :: default ( )
48+ ..default ( )
4949 } ) ;
5050 // transparent cube, using alpha_mode: Blend
5151 commands. spawn_bundle ( PbrBundle {
@@ -55,7 +55,7 @@ fn setup(
5555 // automatically set to `Blend` if the alpha channel is anything lower than 1.0.
5656 material : materials. add ( Color :: rgba ( 0.5 , 0.5 , 1.0 , 0.0 ) . into ( ) ) ,
5757 transform : Transform :: from_xyz ( 0.0 , 0.5 , 0.0 ) ,
58- ..Default :: default ( )
58+ ..default ( )
5959 } ) ;
6060 // sphere
6161 commands. spawn_bundle ( PbrBundle {
@@ -65,22 +65,22 @@ fn setup(
6565 } ) ) ,
6666 material : materials. add ( Color :: rgb ( 0.7 , 0.2 , 0.1 ) . into ( ) ) ,
6767 transform : Transform :: from_xyz ( 0.0 , 0.5 , -1.5 ) ,
68- ..Default :: default ( )
68+ ..default ( )
6969 } ) ;
7070 // light
7171 commands. spawn_bundle ( PointLightBundle {
7272 point_light : PointLight {
7373 intensity : 1500.0 ,
7474 shadows_enabled : true ,
75- ..Default :: default ( )
75+ ..default ( )
7676 } ,
7777 transform : Transform :: from_xyz ( 4.0 , 8.0 , 4.0 ) ,
78- ..Default :: default ( )
78+ ..default ( )
7979 } ) ;
8080 // camera
8181 commands. spawn_bundle ( Camera3dBundle {
8282 transform : Transform :: from_xyz ( -2.0 , 3.0 , 5.0 ) . looking_at ( Vec3 :: ZERO , Vec3 :: Y ) ,
83- ..Default :: default ( )
83+ ..default ( )
8484 } ) ;
8585}
8686
0 commit comments