Various fixes and improvements for large worlds rendering
This commit is contained in:
@@ -152,7 +152,8 @@ void ShadowsOfMordor::Builder::onJobRender(GPUContext* context)
|
||||
auto chunkSize = terrain->GetChunkSize();
|
||||
const auto heightmap = patch->Heightmap.Get()->GetTexture();
|
||||
|
||||
const Matrix& world = chunk->GetWorld();
|
||||
Matrix world;
|
||||
chunk->GetTransform().GetWorld(world);
|
||||
Matrix::Transpose(world, shaderData.WorldMatrix);
|
||||
shaderData.LightmapArea = chunk->Lightmap.UVsArea;
|
||||
shaderData.TerrainChunkSizeLOD0 = TERRAIN_UNITS_PER_VERTEX * chunkSize;
|
||||
|
||||
Reference in New Issue
Block a user