Revision cdd71ce7
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java | ||
---|---|---|
24 | 24 |
import android.graphics.Paint; |
25 | 25 |
import android.opengl.GLSurfaceView; |
26 | 26 |
|
27 |
import org.distorted.library.effect.MatrixEffect; |
|
28 |
import org.distorted.library.effect.MatrixEffectMove; |
|
29 | 27 |
import org.distorted.library.effect.MatrixEffectQuaternion; |
30 |
import org.distorted.library.effect.MatrixEffectRotate; |
|
31 | 28 |
import org.distorted.library.effect.MatrixEffectScale; |
32 | 29 |
import org.distorted.library.effect.VertexEffectSink; |
33 | 30 |
import org.distorted.library.main.DistortedEffects; |
... | ... | |
190 | 187 |
|
191 | 188 |
MeshBase[] meshes = new MeshTriangles[MESHES]; |
192 | 189 |
for(int i=0; i<MESHES; i++) meshes[i] = new MeshTriangles(10); |
193 |
|
|
190 |
/* |
|
194 | 191 |
MatrixEffect[] effects0 = new MatrixEffect[3]; |
195 | 192 |
effects0[0] = new MatrixEffectScale( new Static3D(1,SQ3/2,1) ); |
196 | 193 |
effects0[1] = new MatrixEffectRotate( new Static1D(90), new Static3D(1,0,0), new Static3D(0,0,0) ); |
... | ... | |
216 | 213 |
|
217 | 214 |
axis.set2(SQ3/2); |
218 | 215 |
meshes[3].apply(effects1); |
219 |
|
|
216 |
*/ |
|
220 | 217 |
Static4D[] textureMaps = new Static4D[MESHES]; |
221 | 218 |
|
222 | 219 |
for(int i=0; i<MESHES; i++) textureMaps[i] = new Static4D(i*0.25f,0.0f,0.25f,1.0f); |
Also available in: Unified diff
Minor