mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:17:02 +02:00
tweak to shpere
This commit is contained in:
parent
c6a667af61
commit
e580369a93
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ void addSphere(VoxelTree * tree,bool random, bool wantColorRandomizer) {
|
||||||
float xc = random ? randFloatInRange(r,(1-r)) : 0.5;
|
float xc = random ? randFloatInRange(r,(1-r)) : 0.5;
|
||||||
float yc = random ? randFloatInRange(r,(1-r)) : 0.5;
|
float yc = random ? randFloatInRange(r,(1-r)) : 0.5;
|
||||||
float zc = random ? randFloatInRange(r,(1-r)) : 0.5;
|
float zc = random ? randFloatInRange(r,(1-r)) : 0.5;
|
||||||
float s = (1.0/256); // size of voxels to make up surface of sphere
|
float s = (1.0/32); // size of voxels to make up surface of sphere
|
||||||
bool solid = true;
|
bool solid = true;
|
||||||
|
|
||||||
printf("adding sphere:");
|
printf("adding sphere:");
|
||||||
|
|
Loading…
Reference in a new issue