Revision a2878a67
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/mesh/MeshQuad.java | ||
---|---|---|
40 | 40 |
attribs1[VERT1_ATTRIBS*index + NOR_ATTRIB+1] = 0.0f; |
41 | 41 |
attribs1[VERT1_ATTRIBS*index + NOR_ATTRIB+2] = 1.0f; |
42 | 42 |
|
43 |
attribs1[VERT1_ATTRIBS*index + INF_ATTRIB ] = (x-0.5f); |
|
44 |
attribs1[VERT1_ATTRIBS*index + INF_ATTRIB+1] = (0.5f-y); |
|
45 |
attribs1[VERT1_ATTRIBS*index + INF_ATTRIB+2] = 0.01f ; // Inflated surface needs to be slightly in front |
|
46 |
|
|
47 | 43 |
attribs2[VERT2_ATTRIBS*index + TEX_ATTRIB ] = x; |
48 | 44 |
attribs2[VERT2_ATTRIBS*index + TEX_ATTRIB+1] = 1.0f-y; |
49 | 45 |
} |
Also available in: Unified diff
Remove the 'inflate' vertex attributs from the Mesh and file format, and replace that with a per-component 'inflate centers' (which are as of yet untested)