Lightweight render-related enums (ShaderMode, VisualizationMode) shared across disp3D. More...


Go to the source code of this file.
Namespaces | |
| namespace | DISP3DLIB |
| 3-D brain visualisation using the Qt RHI rendering backend. | |
Functions | |
| uint32_t | DISP3DLIB::packABGR (uint32_t r, uint32_t g, uint32_t b, uint32_t a=0xFF) |
Lightweight render-related enums (ShaderMode, VisualizationMode) shared across disp3D.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Kept QRhi-free and free of heavy Qt includes so it can be pulled in from any disp3D translation unit without forcing a recompile of every shader pipeline when a new render mode is added.
DISP3DLIB::ShaderMode selects between the Standard Phong lighting model, Holographic (translucent fresnel), Anatomical (matte tissue), Dipole (instanced arrow shader), XRay (additive front-faces) and ShowNormals (debug visualisation of vertex normals). DISP3DLIB::VisualizationMode selects how per-vertex colour is computed in the fragment shader: from the base surface tint, from FsAnnotation parcellation, from a scientific (curvature-shaded) palette, or from a source-time-course overlay.
Definition in file rendertypes.h.