Fix bug with accurate normal rendering in stereo

This commit is contained in:
Emil Axelsson
2018-02-14 18:17:59 +01:00
parent 50c7c50b5c
commit cb77e2839c

View File

@@ -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);