mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:53:25 +02:00
added more color groups for false colorization from source
This commit is contained in:
parent
035f1c81b9
commit
bdabe709af
1 changed files with 8 additions and 4 deletions
|
@ -860,12 +860,16 @@ bool VoxelSystem::falseColorizeBySourceOperation(VoxelNode* node, void* extraDat
|
||||||
void VoxelSystem::falseColorizeBySource() {
|
void VoxelSystem::falseColorizeBySource() {
|
||||||
_nodeCount = 0;
|
_nodeCount = 0;
|
||||||
colorizeBySourceArgs args;
|
colorizeBySourceArgs args;
|
||||||
const int NUMBER_OF_COLOR_GROUPS = 3;
|
const int NUMBER_OF_COLOR_GROUPS = 6;
|
||||||
const unsigned char MIN_COLOR = 128;
|
const unsigned char MIN_COLOR = 128;
|
||||||
int voxelServerCount = 0;
|
int voxelServerCount = 0;
|
||||||
groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0),
|
groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0),
|
||||||
groupColor(0, 255, 0),
|
groupColor( 0, 255, 0),
|
||||||
groupColor(0, 0, 255)};
|
groupColor( 0, 0, 255),
|
||||||
|
groupColor(255, 0, 255),
|
||||||
|
groupColor( 0, 255, 255),
|
||||||
|
groupColor(255, 255, 255)
|
||||||
|
};
|
||||||
|
|
||||||
// create a bunch of colors we'll use during colorization
|
// create a bunch of colors we'll use during colorization
|
||||||
NodeList* nodeList = NodeList::getInstance();
|
NodeList* nodeList = NodeList::getInstance();
|
||||||
|
|
Loading…
Reference in a new issue