Revision 627e0ea2
Added by Leszek Koltunski almost 5 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
76 | 76 |
mView = v; |
77 | 77 |
|
78 | 78 |
boobsSink = 1.0f; |
79 |
|
|
80 |
Static3D pLeft = new Static3D(132, 336, 0);
|
|
81 |
Static3D pRight= new Static3D(247, 336, 0);
|
|
82 |
|
|
79 |
|
|
80 |
Static3D pLeft = new Static3D(-68, 36, 0);
|
|
81 |
Static3D pRight= new Static3D( 47, 36, 0);
|
|
82 |
|
|
83 | 83 |
Static4D sinkRegion = new Static4D(0,0,0,60); |
84 | 84 |
|
85 | 85 |
s0 = new Static1D(boobsSink); |
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 |
|
src/main/java/org/distorted/examples/surfaceview/RenderThread.java | ||
---|---|---|
78 | 78 |
mSurfaceHolder = holder; |
79 | 79 |
mView = view; |
80 | 80 |
|
81 |
Static3D pLeft = new Static3D( 90, 108, 0);
|
|
82 |
Static3D pRight= new Static3D(176, 111, 0);
|
|
81 |
Static3D pLeft = new Static3D( 90-320/2, 108-366/2,0);
|
|
82 |
Static3D pRight= new Static3D(176-320/2, 111-366/2,0);
|
|
83 | 83 |
|
84 | 84 |
Static4D rLeft = new Static4D(-10, 10, 0,25); |
85 | 85 |
Static4D rRight= new Static4D( 10, 5, 0,25); |
Also available in: Unified diff
Moving the Vertex and Fragment centers of effect to the center of the Mesh.