Revision a65604a7
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
27 | 27 |
import android.opengl.GLSurfaceView; |
28 | 28 |
|
29 | 29 |
import org.distorted.examples.R; |
30 |
import org.distorted.library.effect.Effect; |
|
30 | 31 |
import org.distorted.library.effect.EffectType; |
31 | 32 |
import org.distorted.library.effect.MatrixEffectQuaternion; |
32 | 33 |
import org.distorted.library.effect.MatrixEffectScale; |
34 |
import org.distorted.library.effect.VertexEffect; |
|
33 | 35 |
import org.distorted.library.effect.VertexEffectDeform; |
34 | 36 |
import org.distorted.library.effect.VertexEffectDisappear; |
35 | 37 |
import org.distorted.library.effect.VertexEffectRotate; |
... | ... | |
130 | 132 |
{ |
131 | 133 |
if( mTexture==null ) mTexture = new DistortedTexture(); |
132 | 134 |
|
133 |
VertexEffectDisappear.enable(); |
|
134 |
VertexEffectRotate.enable(); |
|
135 |
VertexEffectDeform.enable(); |
|
136 |
|
|
135 |
Effect.enableEffects(EffectType.VERTEX); |
|
136 |
DistortedLibrary.setMax(EffectType.VERTEX, 10); |
|
137 | 137 |
DistortedLibrary.needTransformFeedback(); |
138 | 138 |
DistortedLibrary.onSurfaceCreated(mView.getContext(), this); |
139 | 139 |
} |
... | ... | |
328 | 328 |
|
329 | 329 |
private void createMesh() |
330 | 330 |
{ |
331 |
int[] dimensions = new int[] {1,2,3}; |
|
332 |
|
|
331 | 333 |
FactoryCubit factory = FactoryCubit.getInstance(); |
332 |
mMesh = factory.createMegaminxEdgeMesh(0.2f,0.5f);
|
|
334 |
mMesh = factory.createCuboidMesh(dimensions);
|
|
333 | 335 |
|
334 | 336 |
//mMesh = createStaticMesh(); |
335 | 337 |
|
Also available in: Unified diff
Beginnings of support for bandaged versions of the 3x3 cube.