Commit cc0ebd1b authored by Michele Bosi's avatar Michele Bosi

vivid: inverted pixel aspect ratio to match NifTK usage

parent 8f0756b0
......@@ -1156,7 +1156,7 @@ void VividRenderer::renderBackgroundImage( Camera* camera ) {
float sw = (float) framebuffer()->width();
float sh = (float) framebuffer()->height();
float iw = (float) mVividRendering->backgroundTexSampler()->texture()->width();
float ih = (float) mVividRendering->backgroundTexSampler()->texture()->height() * ipa;
float ih = (float) mVividRendering->backgroundTexSampler()->texture()->height() / ipa;
// allow aspect ratio
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment