From b08ddd6b46e44fc1ed61ce4e55bd4553a3ac6b96 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Nov 2021 20:41:59 +0100 Subject: Increase subdivision for patches and spheres. --- src/model/mapfile.cc | 2 +- src/model/vertexarray.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/model') 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 -- cgit v1.2.3