From f7b497a0c25f4ad4682c71dd1ed6f608052feb9b Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Sat, 25 Apr 2020 03:22:49 +0200 Subject: [PATCH] Render figures again. --- assets/voxygen/shaders/include/sky.glsl | 2 +- voxygen/src/scene/mod.rs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/assets/voxygen/shaders/include/sky.glsl b/assets/voxygen/shaders/include/sky.glsl index 8818324c7f..3c9d7f0d39 100644 --- a/assets/voxygen/shaders/include/sky.glsl +++ b/assets/voxygen/shaders/include/sky.glsl @@ -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_MID = vec3(0.02, 0.28, 0.8); 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 SKY_DUSK_TOP = vec3(0.06, 0.1, 0.20); diff --git a/voxygen/src/scene/mod.rs b/voxygen/src/scene/mod.rs index b82053f56c..8725b089c8 100644 --- a/voxygen/src/scene/mod.rs +++ b/voxygen/src/scene/mod.rs @@ -411,6 +411,17 @@ impl Scene { &self.lod, 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); // Render the skybox.