Fix transform scaling applying to nested objects when drawing
#1796 #1350
This commit is contained in:
@@ -125,7 +125,7 @@ void ShadowsOfMordor::Builder::onJobRender(GPUContext* context)
|
||||
auto& lod = staticModel->Model->LODs[0];
|
||||
|
||||
Matrix worldMatrix;
|
||||
staticModel->GetTransform().GetWorld(worldMatrix);
|
||||
staticModel->GetLocalToWorldMatrix(worldMatrix);
|
||||
Matrix::Transpose(worldMatrix, shaderData.WorldMatrix);
|
||||
shaderData.LightmapArea = staticModel->Lightmap.UVsArea;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user