mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-30 10:03:56 +01:00
textureSet.settings takes heightToNormal (sharp or smooth) as one undo step and textureSet.inspect reports it. Smooth is the 3x3 Sobel filter export already used; Sharp takes the two neighbours across, which the viewport and both path tracers used until now. All four now read the set's method from one rule (HeightToNormalMethod::slope, mirrored in mesh.wgsl and trace.wgsl). Projects without the field stay Smooth, so their exports are unchanged; their viewport normal now matches the export.