-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_interactive_cpp.bat
More file actions
37 lines (32 loc) · 1.37 KB
/
run_interactive_cpp.bat
File metadata and controls
37 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
REM Interactive glTF PBR viewer — C++ Vulkan engine
REM Controls: mouse drag to orbit, scroll to zoom, ESC to exit
if not exist playground_cpp\build\Release\lux-playground.exe (
echo C++ engine not built. Build with:
echo cd playground_cpp ^&^& cmake -B build ^&^& cmake --build build --config Release
exit /b 1
)
set SCENE=assets/DamagedHelmet.glb
set IBL=pisa
REM Prefer manifest-based auto-selection, fall back to explicit permutation, then hand-written
if exist shadercache\gltf_pbr_layered.manifest.json (
set PIPELINE=shadercache/gltf_pbr_layered
echo Using layered PBR raster pipeline (manifest auto-selection^)
) else if exist shadercache\gltf_pbr_layered+emission+normal_map.frag.spv (
set PIPELINE=shadercache/gltf_pbr_layered+emission+normal_map
echo Using layered PBR raster pipeline (explicit permutation^)
) else if exist shadercache\gltf_pbr.frag.spv (
set PIPELINE=shadercache/gltf_pbr
echo Using hand-written PBR raster pipeline
) else (
echo No compiled shaders found. Compile first with:
echo compile_all.bat
exit /b 1
)
echo === Interactive C++ Viewer ===
echo Scene: %SCENE%
echo Pipeline: %PIPELINE%
echo IBL: %IBL%
echo Controls: mouse drag = orbit, scroll = zoom, ESC = exit
echo.
playground_cpp\build\Release\lux-playground.exe --scene %SCENE% --pipeline %PIPELINE% --ibl %IBL% --interactive