From 56d8a752d84e984afab20de5980edf10fe6c06f5 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 10 Aug 2018 22:21:44 -0700 Subject: Improve model-viewer support for lights (#626) * Improve model-viewer support for lights The main visible change here is that the model-viewer example supports multiple light sources, with a basic UI for adding new light sources to the scene, and for manipulating the ones that are there. Along the way I also refactored the `IMaterial` decomposition to be a bit less naive, while still only including a completely naive Blinn-Phong implementation. I also went ahead and spruced up the `cube.obj` file so that it has multiple materials, although it is still a completely uninteresting asset. * Fixup: Windows SDK version --- tools/gfx/vector-math.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/gfx/vector-math.h') diff --git a/tools/gfx/vector-math.h b/tools/gfx/vector-math.h index 88cb0c1d9..e35cb46ac 100644 --- a/tools/gfx/vector-math.h +++ b/tools/gfx/vector-math.h @@ -6,6 +6,7 @@ #include "../../external/glm/glm/glm.hpp" #include "../../external/glm/glm/gtc/matrix_transform.hpp" #include "../../external/glm/glm/gtc/constants.hpp" +#include "../../external/glm/glm/gtc/quaternion.hpp" namespace gfx { -- cgit v1.2.3