Revision 698ad0a8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/wind/WindRenderer.java | ||
---|---|---|
53 | 53 |
private WindEffectsManager mManager; |
54 | 54 |
private WindGust mGust; |
55 | 55 |
private Static3D mMove, mScale; |
56 |
private int mObjWidth, mObjHeight;
|
|
56 |
private float mObjWidth, mObjHeight;
|
|
57 | 57 |
|
58 | 58 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
59 | 59 |
|
... | ... | |
62 | 62 |
mView = view; |
63 | 63 |
|
64 | 64 |
MeshCubes cubes = new MeshCubes(50,30,1); |
65 |
DistortedEffects effects = new DistortedEffects(50,30,1); |
|
65 |
DistortedEffects effects = new DistortedEffects(); |
|
66 |
cubes.setStretch(50,30,1); |
|
66 | 67 |
|
67 | 68 |
mTexture = new DistortedTexture(); |
68 | 69 |
mManager = new WindEffectsManager(50,30); |
... | ... | |
71 | 72 |
|
72 | 73 |
mScreen.attach(mTexture,effects,cubes); |
73 | 74 |
|
74 |
mObjWidth = effects.getStartchX();
|
|
75 |
mObjHeight= effects.getStartchY();
|
|
75 |
mObjWidth = cubes.getStretchX();
|
|
76 |
mObjHeight= cubes.getStretchY();
|
|
76 | 77 |
|
77 | 78 |
mManager.apply(effects); |
78 | 79 |
|
Also available in: Unified diff
Move the Effects.setStretch to Meshbase.setStretch