78d0515e8b
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.
49 lines
482 B
Plaintext
49 lines
482 B
Plaintext
# CMake
|
|
build
|
|
build-*
|
|
cmake-build-*
|
|
meson-build-*
|
|
# CMake build artifacts
|
|
__cmake*
|
|
|
|
# Xcode
|
|
*.xcworkspace
|
|
*.xcodeproj
|
|
|
|
# Visual Studio
|
|
*.sln
|
|
*.vcxproj
|
|
*.vcxproj.filters
|
|
*.vcxproj.user
|
|
.vs
|
|
|
|
# Makefile
|
|
Makefile
|
|
*.make
|
|
|
|
# nvim
|
|
.ccls
|
|
.ccls-cache
|
|
.cache
|
|
compile_commands.json
|
|
|
|
# Visual Studio Code
|
|
.vscode
|
|
|
|
# IntelliJ
|
|
.idea
|
|
|
|
# macOS
|
|
.DS_Store
|
|
.AppleDouble
|
|
.LSOverride
|
|
|
|
# Dear ImGui
|
|
imgui.ini
|
|
|
|
# Compiled shaders
|
|
*.spv
|
|
|
|
# Screenshots
|
|
*.png
|