Subject | Hash | Author | Date (UTC) |
---|---|---|---|
chenged cube faces enumeration order | a02f523b115a2ada261f6b4e65042925ad1b042c | Jackalope | 2020-03-29 14:24:52 |
gpu data destroy queue infinite loop bug fix | eae02d74cb1c0cfa780d2038c12c6c568e9845d4 | Jackalope | 2020-03-29 09:05:16 |
jlib update | 3137705c28c8dcbda3c742361cb31a040cf172cd | Jackalope | 2020-03-29 07:07:37 |
cube TOP and BOTTOM faces correct coordinates | ad27c4322f9103d03891aadee452f52c7ec7eed1 | Jackalope | 2020-03-29 07:04:29 |
wrong atlas result value in assertion fixed | a4776dc8935865640a12036be41b79084d762f82 | Jackalope | 2020-03-28 12:56:37 |
removed #pragma once from main file | 1054379a52420eba68f62305675c3928dbd6a4ed | Jackalope | 2020-03-28 12:56:02 |
some identation fixes | a7f2ba135bb6c8195682564727c1bd39721b8b17 | Jackalope | 2020-03-25 13:25:29 |
mesh library refactoring | 4dd908c51d97035ed26cb1c413685c1a8ab15c77 | Jackalope | 2020-03-25 13:24:43 |
removed old unmaintained directory | 75b147dd4dc5d3592da21a707ac301cd46eaaf3d | Jackalope | 2020-03-19 19:35:03 |
shader specialization constants support | 932cd42ce93f89bd2c6b0a3a37eb9b74482f0d13 | Jackalope | 2020-03-09 04:58:58 |
compute module staging support | 99a1a110c75a021e956b8ad5c481f269d693e078 | Jackalope | 2020-03-06 07:06:36 |
changed compute stage flag name (was wrong) | 0e21df1430ac55c1dbc8a0f1969ffb1ec303b870 | Jackalope | 2020-03-06 06:59:38 |
changed compute interface to support reading after and writting before computing, staging is not supported yet | 173f29331f5ebb5206f4086d58e93689eb85df96 | Jackalope | 2020-03-06 05:35:16 |
added staging allocation to Bindings | b74e1cc5e8d80528e48e4f00ae215c547c685211 | Jackalope | 2020-03-06 05:34:04 |
Separate ComputeCmdUnit for cmds and syncs | 9dc0a4a62e6fa68e60cfbd420eff61d8ee4334f0 | Jackalope | 2020-03-06 04:02:24 |
Compute descriptor set improvement, support for different descriptor types | 5aad5ee0e4304b2035a652f4d4ca28e7a75bc93d | Jackalope | 2020-02-29 16:10:50 |
changed doxygen commentary style in DevMemUse description | 9e9a548d6c50363a841af5d4897268aadba6ebed | Jackalope | 2020-02-29 16:08:33 |
make buffer functions const | 24e343bc583629d08fad4d3dadb36a2fd72a4ca7 | Jackalope | 2020-02-29 16:08:04 |
added missing check in draw_drame | cc6483e804d463fe4d1c41746692ec98bfbe53e8 | Jackalope | 2020-02-19 12:40:19 |
solved freee bug, draw data have pointer to user light data instead of applying every frame | f60e7d3908651512a90488966141620306d54151 | Jackalope | 2020-02-19 10:50:22 |
File | Lines added | Lines deleted |
---|---|---|
libs/mesh/cube.h | 5 | 5 |
File libs/mesh/cube.h changed (mode: 100644) (index 340ca44..81a527e) | |||
... | ... | namespace mesh::cube | |
19 | 19 | FACE1 = 0, FACE2 = 1, FACE3 = 2, FACE4 = 3, FACE5 = 4, FACE6 = 5, | FACE1 = 0, FACE2 = 1, FACE3 = 2, FACE4 = 3, FACE5 = 4, FACE6 = 5, |
20 | 20 | FACE_COUNT, | FACE_COUNT, |
21 | 21 | TOP = FACE1, BOTTOM = FACE2, | TOP = FACE1, BOTTOM = FACE2, |
22 | NORTH = FACE3, SOUTH = FACE4, | ||
22 | SOUTH = FACE3, NORTH = FACE4, | ||
23 | 23 | WEST = FACE5, EAST = FACE6, | WEST = FACE5, EAST = FACE6, |
24 | 24 | }; | }; |
25 | 25 | ||
26 | 26 | constexpr static const math::v3f NORMALS[Face::FACE_COUNT] = { | constexpr static const math::v3f NORMALS[Face::FACE_COUNT] = { |
27 | 27 | { 0, -1, 0 },//TOP | { 0, -1, 0 },//TOP |
28 | 28 | { 0, 1, 0 },//BOTTOM | { 0, 1, 0 },//BOTTOM |
29 | { 0, 0, 1 },//NORTH | ||
30 | 29 | { 0, 0, -1 },//SOUTH | { 0, 0, -1 },//SOUTH |
30 | { 0, 0, 1 },//NORTH | ||
31 | 31 | { -1, 0, 0 },//WEST | { -1, 0, 0 },//WEST |
32 | 32 | { 1, 0, 0 },//EAST | { 1, 0, 0 },//EAST |
33 | 33 | }; | }; |
... | ... | namespace mesh::cube | |
75 | 75 | math::vec3<float_t> face_coordinate_to_real(Face face, float_t x, float_t y) { | math::vec3<float_t> face_coordinate_to_real(Face face, float_t x, float_t y) { |
76 | 76 | using vec3 = math::vec3<float_t>; | using vec3 = math::vec3<float_t>; |
77 | 77 | switch (face) { | switch (face) { |
78 | case TOP : return vec3 { x,-1, y } - float_t(0.5); | ||
79 | case BOTTOM: return vec3 { y, 0, x } - float_t(0.5); | ||
80 | case NORTH : return vec3 { y, x, 1 } - float_t(0.5); | ||
78 | case TOP : return vec3 { x, 0, y } - float_t(0.5); | ||
79 | case BOTTOM: return vec3 { y, 1, x } - float_t(0.5); | ||
81 | 80 | case SOUTH : return vec3 { x, y, 0 } - float_t(0.5); | case SOUTH : return vec3 { x, y, 0 } - float_t(0.5); |
81 | case NORTH : return vec3 { y, x, 1 } - float_t(0.5); | ||
82 | 82 | case WEST : return vec3 { 0, x, y } - float_t(0.5); | case WEST : return vec3 { 0, x, y } - float_t(0.5); |
83 | 83 | case EAST : | case EAST : |
84 | 84 | default : return vec3 { 1, y, x } - float_t(0.5); | default : return vec3 { 1, y, x } - float_t(0.5); |