![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QSGGeometry>#include <QSGMaterial>Go to the source code of this file.
Classes | |
| struct | ScalarFillVertex |
| class | ScalarFillMaterial |
Functions | |
| const QSGGeometry::AttributeSet & | scalarFillAttributes () |
QSG-2D-1M Phase 8 — GPU scalar→color mapping for the 2D results smooth depth fill.
Vertices carry (x, y, scalar); the fragment shader normalizes the scalar with the material's (vMin, invRange) uniforms — the exact contract of ScalarRampLut::normalize — and samples a 256×1 ramp LUT texture baked from the active ScalarFillStyle. Consequences:
Enabled by the results renderer only when OPENSWMM_QSG_SHADER_FILL=1 — shader output needs visual parity verification (plan Phase 8), so the CPU-colored path stays the default until confirmed.
| const QSGGeometry::AttributeSet & scalarFillAttributes | ( | ) |
Attribute set matching ScalarFillVertex (location 0 = vec2 position, location 1 = float scalar).