Repository navigation
Expand file tree
/
Copy pathrun_sponza_rust.bat
More file actions
42 lines (36 loc) · 1.45 KB
/
Copy pathrun_sponza_rust.bat
File metadata and controls
42 lines (36 loc) · 1.45 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
38
39
40
41
42
@echo off
REM Sponza Multi-Light Shadow Demo — Rust Vulkan engine
REM Controls: mouse drag to orbit, scroll = zoom, ESC to exit
REM
REM Features:
REM - Sun directional light casting shadows through arches
REM - Orbiting torch spot light with animated shadows
REM - Blue accent point light
if not exist assets\Sponza.glb (
echo Sponza model not found. Download with:
echo python download_sponza.py
exit /b 1
)
if not exist playground_rust\target\release\lux-playground.exe (
echo Rust engine not built. Build with:
echo cd playground_rust ^&^& cargo build --release
exit /b 1
)
REM Compile multi-light shadow shaders if needed
if not exist shadercache\gltf_pbr_layered+normal_map+shadows.frag.spv (
echo Compiling multi-light shadow shaders...
python -m luxc examples/gltf_pbr_layered.lux --pipeline GltfForward --all-permutations -o shadercache/
)
if not exist shadercache\gltf_pbr_layered+normal_map+shadows.frag.spv (
echo Failed to compile shaders.
exit /b 1
)
set PIPELINE=shadercache/gltf_pbr_layered
set SCENE=assets/Sponza.glb
echo === Sponza Multi-Light Shadow Demo (Rust) ===
echo Scene: %SCENE%
echo Pipeline: %PIPELINE% (raster, multi-light + shadows)
echo Lights: sun (shadow) + orbiting torch (shadow) + blue accent
echo Controls: mouse drag = orbit, scroll = zoom, ESC = exit
echo.
playground_rust\target\release\lux-playground.exe --scene %SCENE% --pipeline %PIPELINE% --sponza-lights --interactive