Start to implement stereo support with adaptive stereoscopic depth

This commit is contained in:
Emil Axelsson
2018-02-14 15:05:52 +01:00
parent 2cd16e54b1
commit 499879c84e
12 changed files with 160 additions and 71 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ void RenderableModel::render(const RenderData& data, RendererTasks&) {
glm::vec3 directionToSun = glm::normalize(_sunPos - data.modelTransform.translation);
glm::vec3 directionToSunViewSpace =
glm::mat3(data.camera.combinedViewMatrix()) * directionToSun;
glm::normalize(glm::mat3(data.camera.combinedViewMatrix()) * directionToSun);
_programObject->setUniform(
_uniformCache.directionToSunViewSpace,