Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-06 15:21:15 +0000
committerStijn Buys <ingar@osirion.org>2010-10-06 15:21:15 +0000
commit36509ea1a476b30f17b3436edd7f524861257389 (patch)
tree6648e122d9d1ee7e4bb36430cd1aab3cf1129fda /src/model
parent64a2a6d71023ab382c996ccdb8e403660fa19916 (diff)
removed skydome support, corrected skybox edge issue
Diffstat (limited to 'src/model')
-rw-r--r--src/model/vertexarray.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/model/vertexarray.cc b/src/model/vertexarray.cc
index 67a13aa..ee311ac 100644
--- a/src/model/vertexarray.cc
+++ b/src/model/vertexarray.cc
@@ -98,32 +98,6 @@ void VertexArray::add_sphere()
quad_count--;
}
-
- // add inside-out sphere
- for (int j = 0; j < (SPHERESEGMENTS - 1) / 2; j++) {
-
- float r = sintable[j];
- float r1 = sintable[j+1];
-
-
- for (int i = SPHERESEGMENTS - 1 ; i >= 0; i--) {
- v = math::Vector3f(r * costable[i], r * sintable[i], costable[j]);
- n = v;
- n.normalize();
- texx = 1 - (float)i / (float)(SPHERESEGMENTS - 1);
- texy = -costable[j] / 2 + 0.5f;
- add_vertex(v, n, texx, texy);
-
- v = math::Vector3f(r1 * costable[i], r1 * sintable[i], costable[j+1]);
- n = v;
- n.normalize();
- texx = 1 - (float)i / (float)(SPHERESEGMENTS - 1);
- texy = -costable[j+1] / 2 + 0.5f;
- add_vertex(v, n, texx, texy);
- }
-
- }
-
delete[] sintable;
delete[] costable;
}