Revision 347f6cc1
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/objectlib/objects/TwistyPentultimate.java | ||
---|---|---|
274 | 274 |
|
275 | 275 |
public ObjectFaceShape getObjectFaceShape(int variant) |
276 | 276 |
{ |
277 |
int angle = 15; |
|
278 |
float R = 0.7f; |
|
279 |
float S = 0.5f; |
|
280 |
|
|
277 | 281 |
if( variant==0 ) |
278 | 282 |
{ |
279 | 283 |
float H = isInIconMode() ? 0.001f : 0.03f; |
280 |
float[][] bands = { {H,10,0.5f,0.2f,4,0,0}, {0.001f, 1,0.5f,0.2f,3,0,0} };
|
|
284 |
float[][] bands = { {H,angle,R,S,4,0,0}, {0.001f,angle,R,S,3,0,0} };
|
|
281 | 285 |
int[] indices = { 0,0,0,1,1,1 }; |
282 | 286 |
return new ObjectFaceShape(bands,indices,null); |
283 | 287 |
} |
284 | 288 |
else |
285 | 289 |
{ |
286 | 290 |
float H = isInIconMode() ? 0.001f : 0.03f; |
287 |
float[][] bands = { {H,15,0.5f,0.2f,6,0,0}, {0.001f, 1,0.5f,0.2f,3,0,0} };
|
|
291 |
float[][] bands = { {H,angle,R,S,6,0,0}, {0.001f,angle,R,S,3,0,0} };
|
|
288 | 292 |
int[] indices = { 0,1,1,1,1,1 }; |
289 | 293 |
return new ObjectFaceShape(bands,indices,null); |
290 | 294 |
} |
Also available in: Unified diff
correct face shapes (post-new MeshPolygon normal computation)