feat(render): Phase A8 — RenderingDiagnostics.ProbeVisibilityEnabled
Adds the ACDREAM_PROBE_VIS=1 env-var-toggleable flag for the indoor-cell visibility culling pipeline (#78). Mirrors the existing ProbeIndoor* pattern. DebugVM checkbox follows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d834188a4e
commit
6577c0a21c
3 changed files with 48 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
// Phase A8 — visibility probe flag tests.
|
||||
|
||||
using System;
|
||||
using AcDream.Core.Rendering;
|
||||
using Xunit;
|
||||
|
||||
namespace AcDream.Core.Tests.Rendering;
|
||||
|
||||
public class RenderingDiagnosticsVisibilityTests
|
||||
{
|
||||
[Fact]
|
||||
public void ProbeVisibilityEnabled_CanBeToggled()
|
||||
{
|
||||
var prev = RenderingDiagnostics.ProbeVisibilityEnabled;
|
||||
try
|
||||
{
|
||||
RenderingDiagnostics.ProbeVisibilityEnabled = true;
|
||||
Assert.True(RenderingDiagnostics.ProbeVisibilityEnabled);
|
||||
RenderingDiagnostics.ProbeVisibilityEnabled = false;
|
||||
Assert.False(RenderingDiagnostics.ProbeVisibilityEnabled);
|
||||
}
|
||||
finally
|
||||
{
|
||||
RenderingDiagnostics.ProbeVisibilityEnabled = prev;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue