Skip to content

froxels: use a camera-centered metric world box - #89

Merged
f1ames0ff merged 2 commits into
masterfrom
fix/idtech8-transparency-froxel-box
Nov 11, 2026
Merged

f1ames0ff merged 2 commits into
masterfrom
fix/idtech8-transparency-froxel-box

Conversation

@f1ames0ff

Copy link
Copy Markdown
Owner

The transparency froxel fill and both consumers used a fixed world box in Quake units (-4096,-2048,-4096, size 8192x4096x8192), while the renderer scene is metric. The fill probes were kilometres away and the sampled cells were empty, so the blend weight had nothing to scale.

The box is now a camera-centered 32.512 m cube (the report's 1280 u), shared by CmBuildTransparencyFroxels.comp.hlsl, GlassPaint.hlsli and RsParticle.frag.hlsl through TransparencyFroxels.hlsli.

Runtime ad_swampy, blend 0/0.5/1: [64.85, 53.21, 37.90], [66.75, 55.00, 39.61], [65.78, 54.03, 38.67]. Per-pixel animation noise is still 5.3 and the 0.5 point is not monotonic, so this is not yet a clean visual A/B (green coverage 0.044% at this view); the unit fix is required regardless because it puts the fill probes back in the scene. All three shaders compile with dxc.

@f1ames0ff
f1ames0ff merged commit 57c47bf into master Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant