Skip to content

feat: unify float + Q16.16; add RGB8; fix overflows/typedefs#9

Open
splinedrive wants to merge 1 commit intoBrunoLevy:mainfrom
splinedrive:tinytracer-fixp
Open

feat: unify float + Q16.16; add RGB8; fix overflows/typedefs#9
splinedrive wants to merge 1 commit intoBrunoLevy:mainfrom
splinedrive:tinytracer-fixp

Conversation

@splinedrive
Copy link

@splinedrive splinedrive commented Aug 27, 2025

  • Single source with USE_FIXED switch (pure-integer fixed path)
  • RGB8 output for fixed; float keeps GL_scan_RGBf
  • Add fixed-point attribution

Build:
Float: gcc tinyraytracer.c -O2 -lm -o tinyraytracer && ./tinyraytracer
Fixed: gcc tinyraytracer.c -O2 -DUSE_FIXED -o tinyraytracer && ./tinyraytracer

- Single source with USE_FIXED switch (pure-integer fixed path)
- RGB8 output for fixed; float keeps GL_scan_RGBf
- Add fixed-point attribution

Build:
  Float: gcc tinyraytracer.c -O2 -lm -o tinyraytracer && ./tinyraytracer
  Fixed: gcc tinyraytracer.c -O2 -DUSE_FIXED -o tinyraytracer && ./tinyraytracer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant