16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 19:49:19 +02:00

general tweaks

This commit is contained in:
milek7
2019-09-28 22:52:01 +02:00
parent fc13d6c2a9
commit 106f64f0ba
7 changed files with 11 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ http://mozilla.org/MPL/2.0/.
#include "Float3d.h"
#include "dumb3d.h"
std::vector<glm::vec4> const ndcfrustumshapepoints //
inline std::vector<glm::vec4> const ndcfrustumshapepoints //
{
{-1, -1, -1, 1}, //
{ 1, -1, -1, 1}, //
@@ -25,7 +25,7 @@ std::vector<glm::vec4> const ndcfrustumshapepoints //
{-1, 1, 1, 1}, // z-far
};
std::vector<std::size_t> const frustumshapepoinstorder { 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 };
inline std::vector<std::size_t> const frustumshapepoinstorder { 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 };
// generic frustum class. used to determine if objects are inside current view area