Revision 7a5e538a
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/mesh/MeshFlat.java | ||
---|---|---|
64 | 64 |
|
65 | 65 |
attribs[VERT_ATTRIBS*vertex + POS_ATTRIB ] = x-0.5f; |
66 | 66 |
attribs[VERT_ATTRIBS*vertex + POS_ATTRIB+1] = 0.5f-y; |
67 |
attribs[VERT_ATTRIBS*vertex + POS_ATTRIB+2] = 0; |
|
67 |
attribs[VERT_ATTRIBS*vertex + POS_ATTRIB+2] = 0.0f;
|
|
68 | 68 |
|
69 | 69 |
attribs[VERT_ATTRIBS*vertex + NOR_ATTRIB ] = 0.0f; |
70 | 70 |
attribs[VERT_ATTRIBS*vertex + NOR_ATTRIB+1] = 0.0f; |
71 | 71 |
attribs[VERT_ATTRIBS*vertex + NOR_ATTRIB+2] = 1.0f; |
72 | 72 |
|
73 |
attribs[VERT_ATTRIBS*vertex + INF_ATTRIB ] = 1.0f; //
|
|
74 |
attribs[VERT_ATTRIBS*vertex + INF_ATTRIB+1] = 0.0f; // TODO
|
|
75 |
attribs[VERT_ATTRIBS*vertex + INF_ATTRIB+2] = 0.0f; //
|
|
73 |
attribs[VERT_ATTRIBS*vertex + INF_ATTRIB ] = x-0.5f;
|
|
74 |
attribs[VERT_ATTRIBS*vertex + INF_ATTRIB+1] = 0.5f-y;
|
|
75 |
attribs[VERT_ATTRIBS*vertex + INF_ATTRIB+2] = 0.0f; |
|
76 | 76 |
|
77 | 77 |
attribs[VERT_ATTRIBS*vertex + TEX_ATTRIB ] = x; |
78 | 78 |
attribs[VERT_ATTRIBS*vertex + TEX_ATTRIB+1] = 1.0f-y; |
Also available in: Unified diff
Progress with Inflate (building block of postprocessing effects: the proper way of marking a halo around a Mesh)
'Inflate' app testing the machanism. MeshFlat appears to be working, now we only need to fill up the per-vertex Inflate vector in the MeshCubes.