RT: hoist orm out of the rt_full_detail branch so debug variants compile
Every RT debug vis mode was broken on the default hit group. `orm` was declared
inside `if (rt_full_detail) { ... }` but debug_visualize() reads it afterwards,
so the RT_DEBUG_ENABLED variant died with:
0:3527: 'orm' : undeclared identifier
That failure takes down the whole base compile context ("Failed to build base
compile context for variant 0x40400009"), the renderer falls back, and the frame
time collapses -- 104ms in the run that surfaced this, versus 24ms for the same
scene with vis mode 0.
The custom-hit-group branch builds vec3(1.0, roughness, metalness) for the same
argument, so that is the default here when there is no ORM texture to sample.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
3bb2c0245d54ffd9df283123d64802418be73c5b
by plankatron <fleeky@gmail.com> · 2026-07-31T19:23:49.000Z