Revision 59759251
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
182 | 182 |
Dynamic1D di = new Dynamic1D(); |
183 | 183 |
di.setDuration(randomTime); |
184 | 184 |
di.setCount(0.0f); |
185 |
di.setNoise(0.3f);
|
|
185 |
di.setNoise(0.5f);
|
|
186 | 186 |
di.add(new Static1D(randomAlpha1)); |
187 | 187 |
di.add(new Static1D(randomAlpha2)); |
188 | 188 |
|
189 |
mStars[i].alpha(di, null, new Static2D(0,0));
|
|
189 |
mStars[i].alpha(di); |
|
190 | 190 |
|
191 | 191 |
mRoot.attach(mStars[i]); |
192 | 192 |
} |
... | ... | |
202 | 202 |
|
203 | 203 |
mGFFA.move( new Static3D(w/5,h/3,0) ); |
204 | 204 |
mGFFA.scale( new Static3D(scale,scale,scale) ); |
205 |
mGFFA.alpha(di, null, new Static2D(0,0));
|
|
205 |
mGFFA.alpha(di); |
|
206 | 206 |
|
207 | 207 |
mRoot.attach(mGFFA); |
208 | 208 |
mGFFA.addEventListener(this); |
... | ... | |
384 | 384 |
mCrawlBackground.move( new Static3D(0,screenH-backH,0) ); |
385 | 385 |
mCrawlBackground.rotate(new Static3D(screenW/2,backH,0), new Static1D(CRAWL_ANGLE), new Static3D(1,0,0) ); |
386 | 386 |
|
387 |
final int transpDistance = 5; |
|
388 |
mCrawlBackground.smooth_alpha((1-transpDistance/2)*1.0f, new Static4D(0,0,transpDistance*backH,transpDistance*backH), new Static2D(screenW/2,(1-transpDistance)*backH)); |
|
387 |
final int transpDist = 5; |
|
388 |
Static4D region = new Static4D(screenW/2,(1-transpDist)*backH,transpDist*backH,transpDist*backH); |
|
389 |
mCrawlBackground.alpha(new Static1D(1-transpDist/2), region, true); |
|
389 | 390 |
|
390 | 391 |
mCrawl.move(di); |
391 | 392 |
mCrawl.scale( new Static3D(scale,scale,scale) ); |
Also available in: Unified diff
Major push towards simplifying DistortedObject's public API.
All Fragment effects are using the new API - the 'DataND' marker interfaces.