Revision 5b4a2d76
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/flag/FlagRenderer.java | ||
---|---|---|
97 | 97 |
effects.apply( new MatrixEffectQuaternion(mQuat1, mCenter) ); |
98 | 98 |
effects.apply( new MatrixEffectQuaternion(mQuat2, mCenter) ); |
99 | 99 |
|
100 |
final int GRIDX = 50; |
|
101 |
final int GRIDY = 30; |
|
102 |
|
|
103 |
final Static4D mapFB = new Static4D(0.0f,0.0f,1.0f ,1.0f ); |
|
104 |
final Static4D mapLR = new Static4D(0.0f,0.0f,1.0f/GRIDX,1.0f ); |
|
105 |
final Static4D mapTB = new Static4D(0.0f,0.0f,1.0f ,1.0f/GRIDY); |
|
106 |
|
|
100 | 107 |
mScreen = new DistortedScreen(); |
101 |
mScreen.attach(mTexture, effects, new MeshCubes(50,30,1) );
|
|
108 |
mScreen.attach(mTexture, effects, new MeshCubes(GRIDX,GRIDY,1, mapFB, mapFB, mapLR, mapLR, mapTB, mapTB) );
|
|
102 | 109 |
} |
103 | 110 |
|
104 | 111 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
1) new 'Rubik' app (skeleton)
2) MeshCubes: add support for custom texture mappings on each side (Rubik needs that!)