Revision f0fa83ae
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/object/RubikPyraminx.java | ||
---|---|---|
26 | 26 |
import org.distorted.library.effect.MatrixEffectMove; |
27 | 27 |
import org.distorted.library.effect.MatrixEffectRotate; |
28 | 28 |
import org.distorted.library.effect.MatrixEffectScale; |
29 |
import org.distorted.library.effect.VertexEffectSink; |
|
29 | 30 |
import org.distorted.library.main.DistortedEffects; |
30 | 31 |
import org.distorted.library.main.DistortedTexture; |
31 | 32 |
import org.distorted.library.mesh.MeshBase; |
... | ... | |
191 | 192 |
return FACE_COLORS.length; |
192 | 193 |
} |
193 | 194 |
|
195 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
196 |
|
|
197 |
float getScreenRatio() |
|
198 |
{ |
|
199 |
return 0.7f; |
|
200 |
} |
|
201 |
|
|
202 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
203 |
|
|
204 |
VertexEffectSink getSink(int size) |
|
205 |
{ |
|
206 |
Static3D center = new Static3D(0,0,0); |
|
207 |
Static4D region = new Static4D(0,0,0,0.6f); |
|
208 |
return new VertexEffectSink( new Static1D(1.3f), center, region ); |
|
209 |
} |
|
210 |
|
|
194 | 211 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
195 | 212 |
|
196 | 213 |
Static3D[] getRotationAxis() |
... | ... | |
203 | 220 |
void createFaceTexture(Canvas canvas, Paint paint, int face) |
204 | 221 |
{ |
205 | 222 |
int xoffset = face*TEXTURE_HEIGHT; |
206 |
float STROKE = 0.05f*TEXTURE_HEIGHT;
|
|
223 |
float STROKE = 0.06f*TEXTURE_HEIGHT;
|
|
207 | 224 |
float OFF = STROKE/2 -1; |
208 | 225 |
float OFF2 = 0.5f*TEXTURE_HEIGHT + OFF; |
209 | 226 |
float HEIGHT = TEXTURE_HEIGHT - OFF; |
Also available in: Unified diff
Some fixes for the Pyraminx.