mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
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:
commit
94653fdbac
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue