Volume counts the lookup unrolls when it knows the count at compile time (count, an engine that
recompiles per bake: three); above, and without count, it walks the volume grid (W63, D4950).
Unrolled, every volume costs a box test per px; three's materials hold several lookups each, and
past ~8 unrolled volumes the shader's cost grows faster than the count (W63: 32 volumes 9.6 ms at
1080p unrolled, 0.8 on the grid; 4 volumes 0.36 unrolled, ~0.5 on the grid).
Volume counts the lookup unrolls when it knows the count at compile time (
count, an engine that recompiles per bake: three); above, and withoutcount, it walks the volume grid (W63, D4950). Unrolled, every volume costs a box test per px; three's materials hold several lookups each, and past ~8 unrolled volumes the shader's cost grows faster than the count (W63: 32 volumes 9.6 ms at 1080p unrolled, 0.8 on the grid; 4 volumes 0.36 unrolled, ~0.5 on the grid).