History

clean up constants for voxels

ZappoMan committed 13 years ago

Commit 781721b1 parent 78e87517 files · +4 −17Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 7 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+1−6
@@ -18,15 +18,10 @@ · 17 unmodified lines
18#include <OctalCode.h>18#include <OctalCode.h>
19#include <pthread.h>19#include <pthread.h>
20#include "Log.h"20#include "Log.h"
21#include "VoxelConstants.h"
21 22
22#include "VoxelSystem.h"23#include "VoxelSystem.h"
23 24
24const int MAX_VOXELS_PER_SYSTEM = 250000;
25
26const int VERTICES_PER_VOXEL = 24;
27const int VERTEX_POINTS_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
28const int INDICES_PER_VOXEL = 3 * 12;
29
30float identityVertices[] = { 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1,25float identityVertices[] = { 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1,
31 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1,26 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1,
32 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1 };27 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1 };