Commit Graph

4 Commits

Author SHA1 Message Date
portersky c83561c0fa docs: update README with screenshot and gfx pipeline notes
- Add preview.png of the new sphere (with render-to-texture + post-processing).
- Update scenes description and usage.
- Minor .gitignore tweaks.
2026-05-06 00:43:34 +02:00
portersky 78d0515e8b feat: add sphere scene with fixed cube-to-sphere mapping
Added scenes/sphere.{hpp,cpp} using the cube-to-sphere
approach from nrz.cpp, but with corrected math: vertices
are simply normalized to project onto the unit sphere
(the original used a broken formula with p=50.0 as an
exponent).

The sphere uses indexed geometry with position, normal,
and UV attributes, plus a simple diffuse lighting shader.

Press 1/2 to switch between cube and sphere scenes.
Updated .gitignore to exclude generated PNG screenshots.
2026-05-05 23:54:48 +02:00
portersky c7704f42f7 chore: expand .gitignore with common build/IDE artifacts 2026-05-05 21:35:27 +02:00
portersky e2110ddf4f Inital commit 2026-05-05 21:34:00 +02:00