Revision 1bea4e18
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/library/mesh/MeshPolygon.java | ||
---|---|---|
205 | 205 |
float tmp = x*(NUM_CACHE-1); |
206 | 206 |
int i1 = (int)tmp; |
207 | 207 |
int i2 = i1+1; |
208 |
return (tmp-i1)*(mCurveCache[i2]-mCurveCache[i1]) + mCurveCache[i1];
|
|
208 |
return 0.5f*((tmp-i1)*(mCurveCache[i2]-mCurveCache[i1]) + mCurveCache[i1]);
|
|
209 | 209 |
} |
210 | 210 |
} |
211 | 211 |
|
Also available in: Unified diff
correct face shapes (post-new MeshPolygon normal computation)