30 : terrain(terr), type(t)
39 radius = (float) (25000.0f);
55 static const double BANK_SIZE = 20000;
56 static const int CIRRUS_BANKS = 4;
57 static const int CUMULUS_BANKS = 4;
105 for (n = 0; n <
nbanks; n++) {
106 double xloc = r * cos(az);
107 double yloc = r * sin(az);
108 double alt = rand() / 32.768;
110 for (i = 0; i < 2; i++) {
111 for (j = 0; j < 2; j++) {
112 *pVert =
Vec3((
float) ((2*j-1) * BANK_SIZE + xloc),
114 (
float) ((2*i-1) * BANK_SIZE + yloc));
116 *pTu++ = (float) (-j);
117 *pTv++ = (float) ( i);
119 float dist = pVert->
length();
128 for (i = 0; i < 2; i++) {
129 for (j = 0; j < 2; j++) {
130 *pVert =
Vec3((
float) ((2*j-1) * BANK_SIZE + xloc),
132 (
float) ((2*i-1) * BANK_SIZE + yloc));
134 *pTu++ = (float) (-j);
135 *pTv++ = (float) ( i);
137 float dist = pVert->
length();
146 az += (0.66 + rand()/32768.0) * 0.25 *
PI;
150 else if (r < 1.75*BANK_SIZE)
157 for (i = 0; i <
npolys; i++) {
174 for (n = 0; n <
nbanks; n++) {
175 p->
verts[0] = 0 + n*stride;
176 p->
verts[1] = 1 + n*stride;
177 p->
verts[2] = 3 + n*stride;
178 p->
verts[3] = 2 + n*stride;
182 p->
verts[0] = 0 + n*stride;
183 p->
verts[3] = 1 + n*stride;
184 p->
verts[2] = 3 + n*stride;
185 p->
verts[1] = 2 + n*stride;
191 for (n = 0; n <
nbanks; n++) {
192 p->
verts[0] = 4 + n*stride;
193 p->
verts[1] = 5 + n*stride;
194 p->
verts[2] = 7 + n*stride;
195 p->
verts[3] = 6 + n*stride;
201 for (i = 0; i <
npolys; i++) {
219 for (
int i = 0; i <
nverts; ++i)
238 for (i = 0; i <
nbanks; i++) {
239 for (n = 0; n < 4; n++) {