bd8e8c4809
Fixes #34 The surface-analysis curvature map took screen-space derivatives (dpdx/dpdy) inside a branch of fs_solid. naga accepts that, but browsers' WGSL compiler (Tint, WebGPU) requires derivatives in uniform control flow and rejects the whole `sc_viewport` shader module, so every viewport pipeline was invalid and the viewport stayed black as soon as a design was shown. The curvature is now worked out first thing in fs_solid and passed in, and the canvas image shader samples its texture before discarding. Regression test: every fragment entry point makes derivative and implicit-LOD sampling calls (directly or through helpers) before any branch or return. Checked in headless Chromium with WebGPU (SwiftShader): before, "dpdx must only be called from uniform control flow" and invalid pipelines on New Design; after, no shader or pipeline errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>