Revision 627e0ea2
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
418 | 418 |
mCrawlBackgroundEffects.apply( new MatrixEffectMove(new Static3D( 0, (backH-screenH)/2, 0)) ); |
419 | 419 |
|
420 | 420 |
final int transpDist = 5; |
421 |
Static3D center = new Static3D( screenW/2 , transpDist*backH , 0 );
|
|
421 |
Static3D center = new Static3D( 0, (transpDist-0.5f)*backH , 0 );
|
|
422 | 422 |
Static3D region = new Static3D( transpDist*backH , transpDist*backH , transpDist*backH ); |
423 | 423 |
mCrawlBackgroundEffects.apply( new FragmentEffectAlpha(new Static1D(1-transpDist*0.6f), center, region, true) ); |
424 | 424 |
|
Also available in: Unified diff
Moving the Vertex and Fragment centers of effect to the center of the Mesh.