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
|
|
@ -273,10 +273,14 @@ public sealed class RenderScenePViewFrameProductTests
|
|||
0x0100_0000_0000_0023,
|
||||
RenderProjectionClass.LiveDynamicRoot,
|
||||
parentCell: Cell);
|
||||
RenderProjectionRecord outdoorDynamic = Record(
|
||||
0x0100_0000_0000_0024,
|
||||
RenderProjectionClass.LiveDynamicRoot);
|
||||
scene.Apply(
|
||||
[
|
||||
RenderProjectionDelta.Register(Generation, 1, lookInDynamic),
|
||||
RenderProjectionDelta.Register(Generation, 2, rootDynamic),
|
||||
RenderProjectionDelta.Register(Generation, 3, outdoorDynamic),
|
||||
]);
|
||||
|
||||
PortalVisibilityFrame portal = Portal(Cell);
|
||||
|
|
@ -309,6 +313,9 @@ public sealed class RenderScenePViewFrameProductTests
|
|||
Assert.DoesNotContain(
|
||||
frame.RouteCandidates.ToArray(),
|
||||
candidate => candidate.Id == rootDynamic.Id);
|
||||
Assert.DoesNotContain(
|
||||
frame.RouteCandidates.ToArray(),
|
||||
candidate => candidate.Id == outdoorDynamic.Id);
|
||||
Assert.NotNull(frame.WalkLookInViews);
|
||||
Assert.False(frame.WalkLookInViews!.SphereVisibleInLookInTurn(
|
||||
routeIndex: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue