mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Start to implement stereo support with adaptive stereoscopic depth
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user