Revision d5973655
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/main/RubikRenderer.java | ||
---|---|---|
122 | 122 |
@Override |
123 | 123 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
124 | 124 |
{ |
125 |
DistortedLibrary.setMax(EffectType.VERTEX,25); // 60 Minx Quats + Rotate |
|
126 | 125 |
VertexEffectRotate.enable(); |
127 | 126 |
VertexEffectQuaternion.enable(); |
128 | 127 |
BaseEffect.Type.enableEffects(); |
src/main/java/org/distorted/tutorial/TutorialRenderer.java | ||
---|---|---|
74 | 74 |
@Override |
75 | 75 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
76 | 76 |
{ |
77 |
DistortedLibrary.setMax(EffectType.VERTEX,61); // 60 Minx quaternions + rotate |
|
78 | 77 |
VertexEffectRotate.enable(); |
79 | 78 |
VertexEffectQuaternion.enable(); |
80 | 79 |
BaseEffect.Type.enableEffects(); |
Also available in: Unified diff
We now have much more effects possible, 100 by default - it is no longer needed to call setMax().