Revision 0372f32c
Added by Leszek Koltunski over 6 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DActivity2.java | ||
---|---|---|
66 | 66 |
private ViewPager mViewPager; |
67 | 67 |
private Effects3DTabViewPager mPager; |
68 | 68 |
|
69 |
private static boolean mShowCenter = true;
|
|
70 |
private static boolean mShowRegion = true;
|
|
71 |
private static boolean mShowNormal = true;
|
|
72 |
private static boolean mUseOIT = false;
|
|
69 |
private boolean mShowCenter;
|
|
70 |
private boolean mShowRegion;
|
|
71 |
private boolean mShowNormal;
|
|
72 |
private boolean mUseOIT ;
|
|
73 | 73 |
|
74 | 74 |
private Effects3DTab[] mTab; |
75 | 75 |
|
... | ... | |
93 | 93 |
mBitmapID = b.getInt("bitmap"); |
94 | 94 |
mString = b.getString("string"); |
95 | 95 |
|
96 |
DistortedEffects.setMax(EffectType.VERTEX ,20); // those have to be called before |
|
97 |
DistortedEffects.setMax(EffectType.FRAGMENT,3); // any DistortedEffect get created! |
|
96 |
mShowCenter = true; |
|
97 |
mShowRegion = true; |
|
98 |
mShowNormal = true; |
|
99 |
mUseOIT = false; |
|
100 |
|
|
101 |
DistortedEffects.setMax(EffectType.VERTEX ,10); // those have to be called before |
|
102 |
DistortedEffects.setMax(EffectType.FRAGMENT,10); // any DistortedEffect get created! |
|
98 | 103 |
|
99 | 104 |
if( mObjectType==1 ) mMesh = new MeshFlat(mNumCols,mNumRows); |
100 | 105 |
else mMesh = new MeshCubes(mNumCols, mString, mNumSlic); |
Also available in: Unified diff
Progress with Effects3D app.