Revision 6979a0e0
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/earth/EarthRenderer.java | ||
---|---|---|
69 | 69 |
private static final int LEVEL = 40; |
70 | 70 |
private static final float FOV = 30.0f; |
71 | 71 |
private static final float NEAR = 0.1f; |
72 |
private static final int MAX_EFF = 20; |
|
73 | 72 |
private static final float SCALE = 1.10f; |
74 | 73 |
|
75 | 74 |
private GLSurfaceView mView; |
... | ... | |
267 | 266 |
{ |
268 | 267 |
is.close(); |
269 | 268 |
} |
270 |
catch(IOException e) { }
|
|
269 |
catch(IOException ignored) { }
|
|
271 | 270 |
} |
272 | 271 |
|
273 | 272 |
mTexture.setTexture(bitmap); |
... | ... | |
278 | 277 |
Effect.enableEffects(EffectType.FRAGMENT); |
279 | 278 |
Effect.enableEffects(EffectType.VERTEX); |
280 | 279 |
|
281 |
DistortedLibrary.setMax(EffectType.VERTEX , MAX_EFF); |
|
282 |
DistortedLibrary.setMax(EffectType.FRAGMENT, MAX_EFF); |
|
283 |
|
|
284 | 280 |
DistortedLibrary.onSurfaceCreated(mView.getContext(), this); |
285 | 281 |
} |
286 | 282 |
|
Also available in: Unified diff
Remove all the calls to DistortedLibrary.setMax() (except for app 'Check', which explictly checks this API)