Revision 1585ba24
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
418 | 418 |
mCrawlBackgroundEffects.apply( new MatrixEffectRotate(new Static1D(CRAWL_ANGLE), new Static3D(1,0,0), new Static3D(screenW/2,backH,0)) ); |
419 | 419 |
|
420 | 420 |
final int transpDist = 5; |
421 |
Static4D region = new Static4D(screenW/2,(1-transpDist)*backH,transpDist*backH,transpDist*backH); |
|
422 |
mCrawlBackgroundEffects.apply( new FragmentEffectAlpha(new Static1D(1-transpDist*0.6f), region, true) ); |
|
421 |
Static3D center = new Static3D( screenW/2 , (1-transpDist)*backH , 0 ); |
|
422 |
Static3D region = new Static3D( transpDist*backH , transpDist*backH , transpDist*backH ); |
|
423 |
mCrawlBackgroundEffects.apply( new FragmentEffectAlpha(new Static1D(1-transpDist*0.6f), center, region, true) ); |
|
423 | 424 |
|
424 | 425 |
Dynamic3D di = new Dynamic3D(70000,0.5f); |
425 | 426 |
di.add(new Static3D(screenW/2,+backH , 0)); |
Also available in: Unified diff
Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)
Also corresponding changes to the applications.