Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2021-11-07 20:41:59 +0100
committerStijn Buys <ingar@telenet.be>2021-11-07 20:41:59 +0100
commitb08ddd6b46e44fc1ed61ce4e55bd4553a3ac6b96 (patch)
treee0af56bd87ad7c7717946a056223e0430b0e7616
parentdcee4c2a9d9349f90e3076d60a8fa9e3871f1892 (diff)
Increase subdivision for patches and spheres.
-rw-r--r--src/model/mapfile.cc2
-rw-r--r--src/model/vertexarray.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/model/mapfile.cc b/src/model/mapfile.cc
index 3adcbb0..99601a6 100644
--- a/src/model/mapfile.cc
+++ b/src/model/mapfile.cc
@@ -459,7 +459,7 @@ bool MapFile::read_patchdef()
// binomial coefficient
const float binom[3] = {1.0f, 2.0f, 1.0f};
- const size_t subdivide_max = 4;
+ const size_t subdivide_max = 8;
size_t subdivide_u = 0;
size_t subdivide_v = 0;
diff --git a/src/model/vertexarray.h b/src/model/vertexarray.h
index 1474c67..5f542a8 100644
--- a/src/model/vertexarray.h
+++ b/src/model/vertexarray.h
@@ -13,7 +13,7 @@ namespace model
{
// number of segments in a sphere circle, must be uneven
-const int SPHERESEGMENTS = 65;
+const int SPHERESEGMENTS = 127;
/// global geometry vertex array
/** a VertexArray acts like a stack of model vertices, it has no knowledge of what it is holding