Merge pull request #1506 from Azaezel/pixelScaleAdjust

Seems to work fine for me. May be able to use some additional refinement later, but this seems more reliable than the hardcoded value that's in there now.
This commit is contained in:
Areloch 2016-02-04 13:23:40 -06:00
commit 94653fdbac

View file

@ -593,7 +593,7 @@ S32 TSShapeInstance::setDetailFromDistance( const SceneRenderState *state, F32 s
// 4:3 aspect ratio, we've changed the reference value
// to 300 to be more compatible with legacy shapes.
//
const F32 pixelScale = state->getViewport().extent.y / 300.0f;
const F32 pixelScale = (state->getViewport().extent.x / state->getViewport().extent.y);
// This is legacy DTS support for older "multires" based
// meshes. The original crossbow weapon uses this.