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>
27 lines
741 B
C#
27 lines
741 B
C#
// 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;
|
|
}
|
|
}
|
|
}
|