mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 19:50:03 -06:00
Fix bug with accurate normal rendering in stereo
This commit is contained in:
@@ -374,7 +374,7 @@ void ChunkRenderer::renderChunkGlobally(const Chunk& chunk, const RenderData& da
|
||||
{
|
||||
// Apply an extra scaling to the height if the object is scaled
|
||||
programObject->setUniform(
|
||||
"heightScale", static_cast<float>(data.modelTransform.scale));
|
||||
"heightScale", static_cast<float>(data.modelTransform.scale * data.camera.scaling()));
|
||||
}
|
||||
|
||||
setCommonUniforms(*programObject, chunk, data);
|
||||
|
||||
Reference in New Issue
Block a user