refactor(render): move root-cell dynamics onto walk turns
This commit is contained in:
parent
f9a80fbc44
commit
474b05e7dc
4 changed files with 54 additions and 29 deletions
|
|
@ -269,7 +269,15 @@ public sealed class RenderScenePViewFrameProductTests
|
|||
0x0100_0000_0000_0022,
|
||||
RenderProjectionClass.LiveDynamicRoot,
|
||||
parentCell: lookInCell);
|
||||
scene.Apply([RenderProjectionDelta.Register(Generation, 1, lookInDynamic)]);
|
||||
RenderProjectionRecord rootDynamic = Record(
|
||||
0x0100_0000_0000_0023,
|
||||
RenderProjectionClass.LiveDynamicRoot,
|
||||
parentCell: Cell);
|
||||
scene.Apply(
|
||||
[
|
||||
RenderProjectionDelta.Register(Generation, 1, lookInDynamic),
|
||||
RenderProjectionDelta.Register(Generation, 2, rootDynamic),
|
||||
]);
|
||||
|
||||
PortalVisibilityFrame portal = Portal(Cell);
|
||||
ClipFrameAssembly clip = FullScreenClip(Cell);
|
||||
|
|
@ -298,6 +306,9 @@ public sealed class RenderScenePViewFrameProductTests
|
|||
Assert.DoesNotContain(
|
||||
frame.RouteRanges.ToArray(),
|
||||
candidate => candidate.Route == RenderFrameCandidateRoute.LookInObject);
|
||||
Assert.DoesNotContain(
|
||||
frame.RouteCandidates.ToArray(),
|
||||
candidate => candidate.Id == rootDynamic.Id);
|
||||
Assert.NotNull(frame.WalkLookInViews);
|
||||
Assert.False(frame.WalkLookInViews!.SphereVisibleInLookInTurn(
|
||||
routeIndex: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue