Phase 1: Foundations & Core Engine
- Set up vector math utilities:
(vec3): add, subtract, dot, cross, normalize - Implement Ray class — origin, direction, basic functions
- Basic Sphere object — position, radius, material properties
- Ray-Sphere intersection logic — the core of your renderer
- Camera setup — generate rays through the viewport
- Scene structure — manage objects and lights
Objectives:
- Render a single sphere with basic color
- Output to a simple PPM file format