Fix large worlds rendering of meshes
Add `Double4x4` for higher precision matrices operations #2985
This commit is contained in:
@@ -342,3 +342,9 @@ struct TIsPODType<GeometryDrawStateData>
|
||||
drawState.PrevWorld = worldMatrix; \
|
||||
drawState.PrevFrame = frame; \
|
||||
}
|
||||
|
||||
#if USE_LARGE_WORLDS
|
||||
#define ACTOR_GET_WORLD_MATRIX(actor, view, world) Real4x4 worldReal; actor->GetLocalToWorldMatrix(worldReal); renderContext.View.GetWorldMatrix(worldReal); Matrix world = (Matrix)worldReal;
|
||||
#else
|
||||
#define ACTOR_GET_WORLD_MATRIX(actor, view, world) Real4x4 world; actor->GetLocalToWorldMatrix(world); renderContext.View.GetWorldMatrix(world);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user