refactor(render): move outdoor dynamics onto landscape turns
This commit is contained in:
parent
474b05e7dc
commit
2127c955f6
8 changed files with 151 additions and 12 deletions
|
|
@ -92,10 +92,19 @@ internal sealed class WalkStaticStreamPopulator
|
|||
ReadOnlySpan<RenderProjectionRecord> records,
|
||||
uint tupleLandblockId,
|
||||
Vector3 cameraWorldPosition,
|
||||
Matrix4x4 viewProjection) =>
|
||||
PopulateCell(
|
||||
stream, WalkDrawStage.OutdoorStatic, cellId, records,
|
||||
tupleLandblockId, cameraWorldPosition, viewProjection);
|
||||
Matrix4x4 viewProjection,
|
||||
IWalkLookInViewSource? views = null,
|
||||
int viewRouteIndex = -1)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(stream);
|
||||
for (int i = 0; i < records.Length; i++)
|
||||
{
|
||||
ClassifyAndAppend(
|
||||
stream, WalkDrawStage.OutdoorStatic, cellId, in records[i],
|
||||
tupleLandblockId, cameraWorldPosition, viewProjection,
|
||||
liveDynamic: false, views, viewRouteIndex);
|
||||
}
|
||||
}
|
||||
|
||||
internal void PopulateCellDynamics(
|
||||
OrderedDrawStream stream,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue