Render figures again.

This commit is contained in:
Joshua Yanovski 2020-04-25 03:22:49 +02:00
parent 44e4aad48d
commit f7b497a0c2
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@ const float PI = 3.141592;
const vec3 SKY_DAY_TOP = vec3(0.1, 0.5, 0.9); const vec3 SKY_DAY_TOP = vec3(0.1, 0.5, 0.9);
const vec3 SKY_DAY_MID = vec3(0.02, 0.28, 0.8); const vec3 SKY_DAY_MID = vec3(0.02, 0.28, 0.8);
const vec3 SKY_DAY_BOT = vec3(0.1, 0.2, 0.3); const vec3 SKY_DAY_BOT = vec3(0.1, 0.2, 0.3);
const vec3 DAY_LIGHT = vec3(1.2, 1.0, 1.0) * 1.8;//3.0; const vec3 DAY_LIGHT = vec3(1.2, 1.0, 1.0) * 3.0;
const vec3 SUN_HALO_DAY = vec3(0.35, 0.35, 0.0); const vec3 SUN_HALO_DAY = vec3(0.35, 0.35, 0.0);
const vec3 SKY_DUSK_TOP = vec3(0.06, 0.1, 0.20); const vec3 SKY_DUSK_TOP = vec3(0.06, 0.1, 0.20);

View File

@ -411,6 +411,17 @@ impl Scene {
&self.lod, &self.lod,
self.camera.get_focus_pos(), self.camera.get_focus_pos(),
); );
self.figure_mgr.render(
renderer,
state,
player_entity,
tick,
&self.globals,
&self.lights,
&self.shadows,
&self.lod,
&self.camera,
);
self.lod.render(renderer, &self.globals); self.lod.render(renderer, &self.globals);
// Render the skybox. // Render the skybox.