1. FRONTEND & STATE STACK
Static HTML + Vanilla JS + Tailwind
UI/UX Layer: Single-file HTML5 application with Tailwind CSS design tokens, Three.js r128, OrbitControls, and Chart.js 3.9.1.
Biophysical State: Vanilla JavaScript stores membrane voltage and Hodgkin–Huxley gating variables (`Vm`, `m`, `h`, `n`) plus an accelerated teaching-state model of the Na⁺/K⁺-ATPase. Rendering is performed with `requestAnimationFrame` and direct Three.js object updates.
2. STRUCTURAL REFERENCES & PROCEDURAL PROTEINS
Topology-Informed Teaching Models
Structural Visualization: PDB entries are cited as scientific references for topology and conformational states, while the rendered proteins are deliberately simplified Three.js teaching models. They are not atom-for-atom reconstructions, molecular-dynamics trajectories, or direct renderings of deposited coordinates.
3. PROCEDURAL WEBGL SHADERS
Dynamic Lesion Transitions
Procedural Visualization: Vertex and fragment shaders use lightweight hash-based value noise, Fresnel shading, and parametric deformations to create illustrative lesion morphs. These are explanatory graphics, not quantitative histopathology simulations or reaction–diffusion models.
CORE GLSL SHADER: PROCEDURAL VALUE NOISE + ILLUSTRATIVE LESION MORPHS
// Updated 2026 Vertex & Fragment Shader (Active in 3D Viewport)
uniform float uTime;
uniform float uApWavePos; // Normalized [0..1] saltatory spike position
uniform float uPathologyType; // 1 = AD PHF-Tau/Aβ, 2 = MS Paranodal Blistering, 3 = Stroke TRPM4 Beading
uniform float uPathologySev; // Smoothly lerped [0..1] lesion expression state
varying vec3 vNormal;
varying vec3 vViewPosition;
varying vec3 vWorldPos;
varying float vLesionMask;
void main() {
vec3 N = normalize(vNormal);
vec3 V = normalize(vViewPosition);
float fresnel = pow(1.0 - max(dot(N, V), 0.0), 2.4);
// Healthy Subsurface Scattering vs. Disease-Specific Histopathology Chromophores
vec3 healthyRGB = vec3(0.28, 0.35, 0.65) + vec3(0.58, 0.68, 0.98) * fresnel * 1.45;
vec3 adTauRGB = mix(vec3(0.18, 0.14, 0.22), vec3(0.96, 0.62, 0.11), smoothstep(0.35, 0.82, vLesionMask));
vec3 msLesionRGB= mix(vec3(0.35, 0.18, 0.28), vec3(0.95, 0.24, 0.37), smoothstep(0.30, 0.78, vLesionMask));
vec3 strokeRGB = mix(vec3(0.15, 0.22, 0.32), vec3(0.88, 0.18, 0.32), fresnel * 1.6);
vec3 targetPathRGB = (uPathologyType < 1.5) ? adTauRGB : ((uPathologyType < 2.5) ? msLesionRGB : strokeRGB);
vec3 finalRGB = mix(healthyRGB, targetPathRGB, uPathologySev * smoothstep(0.15, 0.85, vLesionMask));
gl_FragColor = vec4(finalRGB, 0.94);
}
QUESTION 1 OF 3 // BIOPHYSICS & PATHOLOGY
Score: 0 / 3
During a single catalytic Post–Albers cycle (E1 → E2-P → E1) of the electrogenic Na⁺/K⁺-ATPase pump (PDB: 3KDP), what is the exact stoichiometry and net charge movement?