More work on LOD - allowing material boundaries to collapse.
This commit is contained in:
@ -70,6 +70,7 @@ namespace PolyVox
|
||||
POLYVOX_SHARED_PTR<IndexedSurfacePatch> extractSubset(std::set<uint8_t> setMaterials);
|
||||
|
||||
void generateAveragedFaceNormals(bool bNormalise, bool bIncludeEdgeVertices = false);
|
||||
void generateMaterialWeightedNormals();
|
||||
|
||||
//Vector3DInt32 m_v3dRegionPosition; //FIXME - remove this?
|
||||
|
||||
|
@ -30,6 +30,7 @@ freely, subject to the following restrictions:
|
||||
#include "Vector.h"
|
||||
|
||||
#include <bitset>
|
||||
#include <vector>
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
@ -80,6 +81,9 @@ namespace PolyVox
|
||||
public:
|
||||
Vector3DFloat position;
|
||||
Vector3DFloat normal;
|
||||
Vector3DFloat materialNormal;
|
||||
int noOfMatchingNeighbours;
|
||||
std::vector<uint8_t> neighbourMaterials;
|
||||
float material; //FIXME: This shouldn't be float on CPU?
|
||||
std::bitset<7> m_bFlags;
|
||||
};
|
||||
|
Reference in New Issue
Block a user