Fixes for Foliage with Large Worlds usage

This commit is contained in:
Wojtek Figat
2022-07-03 16:08:22 +02:00
parent 62ff305fad
commit d9dc23afc1
8 changed files with 61 additions and 56 deletions

View File

@@ -72,6 +72,7 @@ namespace
{
Actor* FindActorByDrawCall(Actor* actor, const DrawCall& drawCall, float& scaleInLightmap)
{
// TODO: large-worlds
const auto asStaticModel = ScriptingObject::Cast<StaticModel>(actor);
if (asStaticModel && asStaticModel->GetPerInstanceRandom() == drawCall.PerInstanceRandom && asStaticModel->GetPosition() == drawCall.ObjectPosition)
{