@@ -17,11 +17,11 @@ use psp::{
1717 Align16 , BUF_WIDTH , SCREEN_HEIGHT , SCREEN_WIDTH ,
1818} ;
1919
20- static CRAB_VERTICES : Align16 < [ u8 ; 664416 ] > = Align16 ( * include_bytes ! ( "../assets/crab .raw" ) ) ;
20+ static CRAB_VERTICES : Align16 < [ u8 ; 455328 ] > = Align16 ( * include_bytes ! ( "../assets/rustacean1 .raw" ) ) ;
2121
2222psp:: module!( "crab-rave" , 1 , 1 ) ;
2323
24- const LIGHT_DISTANCE : f32 = 5 .0;
24+ const LIGHT_DISTANCE : f32 = - 10 .0;
2525
2626static mut LIST : Align16 < [ u32 ; 0x40000 ] > = Align16 ( [ 0 ; 0x40000 ] ) ;
2727
@@ -127,7 +127,7 @@ fn psp_main() {
127127 for i in 0 ..4 {
128128 let pos = ScePspFVector3 {
129129 x : cosf32 ( i as f32 * ( PI / 2.0 ) + val as f32 * ( PI / 180.0 ) ) * LIGHT_DISTANCE ,
130- y : 0 .0,
130+ y : 25 .0,
131131 z : ( sinf32 ( i as f32 * ( PI / 2.0 ) + val as f32 * ( PI / 180.0 ) ) * LIGHT_DISTANCE ) ,
132132 } ;
133133 sys:: sceGuLight (
@@ -138,10 +138,14 @@ fn psp_main() {
138138 ) ;
139139 sys:: sceGuLightColor ( i, LightComponent :: DIFFUSE , 0xff00_ffff ) ;
140140 sys:: sceGuLightColor ( i, LightComponent :: SPECULAR , 0xffff_ffff ) ;
141- sys:: sceGuLightAtt ( i, 0.0 , 1.0 , 0.0 ) ;
141+ sys:: sceGuLightAtt ( i, 0.0 , 0.66 , 0.0 ) ;
142142 }
143143
144- sys:: sceGuSpecular ( 12.0 ) ;
144+ /*sys::sceGuSpecular(1000.0);
145+ sys::sceGuSendCommandf(psp::sys::GeCommand::Light0Diffuse, 0.0);
146+ sys::sceGuSendCommandf(psp::sys::GeCommand::Light1Diffuse, 0.0);
147+ sys::sceGuSendCommandf(psp::sys::GeCommand::Light2Diffuse, 0.0);
148+ sys::sceGuSendCommandf(psp::sys::GeCommand::Light3Diffuse, 0.0);*/
145149 sys:: sceGuAmbient ( 0x0022_2222 ) ;
146150
147151 sys:: sceGumMatrixMode ( MatrixMode :: Projection ) ;
@@ -152,7 +156,7 @@ fn psp_main() {
152156 let pos = ScePspFVector3 {
153157 x : 0.0 ,
154158 y : 0.0 ,
155- z : -9 .0,
159+ z : -50 .0,
156160 } ;
157161 sys:: sceGumLoadIdentity ( ) ;
158162 sys:: sceGumTranslate ( & pos) ;
0 commit comments