Revision 34bc9f31
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/config/ConfigRenderer.java | ||
---|---|---|
27 | 27 |
import org.distorted.library.main.DistortedLibrary; |
28 | 28 |
import org.distorted.library.main.DistortedScreen; |
29 | 29 |
import org.distorted.objectlib.effects.BaseEffect; |
30 |
import org.distorted.objectlib.main.ObjectControl; |
|
30 | 31 |
|
31 | 32 |
import javax.microedition.khronos.egl.EGLConfig; |
32 | 33 |
import javax.microedition.khronos.opengles.GL10; |
... | ... | |
75 | 76 |
@Override |
76 | 77 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
77 | 78 |
{ |
78 |
DistortedLibrary.setMax(EffectType.VERTEX,61); // 60 Minx quaternions + rotate
|
|
79 |
DistortedLibrary.setMax(EffectType.VERTEX, ObjectControl.MAX_QUATS+1);
|
|
79 | 80 |
VertexEffectRotate.enable(); |
80 | 81 |
VertexEffectQuaternion.enable(); |
81 | 82 |
BaseEffect.Type.enableEffects(); |
Also available in: Unified diff
Generalize the max number of moving parts and max size of quat group.