Skip to content

MNT remove dead WebGL rendering code - #763

Draft
kroq-gar78 wants to merge 2 commits into
devfrom
mnt-webgl-dead-code
Draft

kroq-gar78 wants to merge 2 commits into
devfrom
mnt-webgl-dead-code

Conversation

@kroq-gar78

@kroq-gar78 kroq-gar78 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

This PR deletes rendering code that is no longer used:

  • The halo renderer / volume-integration renderer (HALO_RENDER in surface_pixel, Shaders.cmap_quad, decode_float_vec2, and the commented-out wiring in mriview_surface.js and axes3d.js): an unfinished 2013 experiment, unreachable since the Three.js r69 rewrite in 2014.
  • VolumeSheets (mriview_surface.js): never instantiated anywhere in the repo's history.
  • shadowtex.js: never instantiated. Only simple.html loaded it.

setHalo() stays: despite the name, it builds the surface's live mesh. Renaming may need more refactoring, so it is out of the scope of this PR.

Testing

  • Shader link and headless viewer tests: 203 passed, 1 skipped (opt-in visual comparison).

Follow-ups

  • simple.html was already broken: it loads files that don't exist.

VolumeSheets has never been instantiated anywhere in the repo's history.
The halo renderer (HALO_RENDER, cmap_quad) was an unfinished 2013
experiment, unreachable since the r69 rewrite, and its GLSL no longer
compiled. ShadowTex was never instantiated.

setHalo() stays: it builds the surface's live mesh.
@kroq-gar78

Copy link
Copy Markdown
Contributor Author

Note: merge this after #762 so we ensure the shaders don't break.

This branch has not been deployed

No deployments
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