… | |
… | |
169 | e->show (); |
169 | e->show (); |
170 | } |
170 | } |
171 | |
171 | |
172 | void fisch (vec3 center, GLfloat radius, int depth) |
172 | void fisch (vec3 center, GLfloat radius, int depth) |
173 | { |
173 | { |
174 | entity *planet = new entity (new geometry_sphere (radius)); |
174 | entity *planet = new entity (new geometry_sphere (testmat, radius)); |
175 | planet->move (center); |
175 | planet->move (center); |
176 | planet->show (); |
176 | planet->show (); |
177 | |
177 | |
178 | if (--depth) |
178 | if (--depth) |
179 | { |
179 | { |
… | |
… | |
327 | entity *e = new entity (g); |
327 | entity *e = new entity (g); |
328 | e->move (vec3 (i*5, -3, -i*10)); |
328 | e->move (vec3 (i*5, -3, -i*10)); |
329 | e->show (); |
329 | e->show (); |
330 | } |
330 | } |
331 | |
331 | |
332 | #if 0 |
|
|
333 | { |
332 | { |
334 | fisch (vec3 (0, 0, -2e9), 1e9, 8); |
333 | fisch (vec3 (0, 0, -2e9), 1e9, 8); |
335 | //entity *planet = new entity (new geometry_sphere (1e9)); |
334 | //entity *planet = new entity (new geometry_sphere (1e9)); |
336 | //planet->move (vec3 (0, 0, -1.5e9)); |
335 | //planet->move (vec3 (0, 0, -1.5e9)); |
337 | //planet->show (); |
336 | //planet->show (); |
338 | } |
337 | } |
339 | |
338 | |
340 | { |
339 | { |
341 | entity *planet = new entity (new geometry_sphere (4e15)); |
340 | entity *planet = new entity (new geometry_sphere (testmat, 4e15)); |
342 | planet->move (vec3 (0, 0, 1e17)); |
341 | planet->move (vec3 (0, 0, 1e17)); |
343 | planet->show (); |
342 | planet->show (); |
344 | } |
343 | } |
345 | |
344 | |
346 | //draw_floor (10, -500, -10, -1000); |
345 | //draw_floor (10, -500, -10, -1000); |
347 | draw_level (); |
346 | draw_level (); |
348 | |
347 | |
349 | |
348 | |
|
|
349 | #if 0 |
350 | { |
350 | { |
351 | geometry_heightfield *hf = new geometry_heightfield (100000., 100000.); |
351 | geometry_heightfield *hf = new geometry_heightfield (100000., 100000.); |
352 | entity *e = new entity (hf); |
352 | entity *e = new entity (hf); |
353 | e->move (vec3 (-100000, -100000 * 0.01, -100000)); |
353 | e->move (vec3 (-100000, -100000 * 0.01, -100000)); |
354 | e->show (); |
354 | e->show (); |
… | |
… | |
373 | frames = 0; |
373 | frames = 0; |
374 | |
374 | |
375 | linear_light mylight; |
375 | linear_light mylight; |
376 | mylight.radius = 100000; |
376 | mylight.radius = 100000; |
377 | mylight.c = colour (1., 1, 1, 1.); |
377 | mylight.c = colour (1., 1, 1, 1.); |
378 | mylight.intensity = 1.2; |
378 | mylight.intensity = 1.F; |
379 | |
379 | |
380 | pass pass_light (&mylight); |
380 | pass pass_light (&mylight); |
381 | |
381 | |
382 | while (!done) |
382 | while (!done) |
383 | { |
383 | { |