Godzil
ace7d53571
Clearing up some memory to prevent stupid issues
...
Preparing for some optimisations. (absolutely need to reduce the ammount of allocations done.)
2020-03-02 08:24:09 +00:00
Godzil
14c3044acf
Cosmetics
2020-02-20 13:27:12 +00:00
Godzil
dbaa6eea2c
Fix Intersect and add sort the list each time we add something to it.
2020-02-20 00:46:19 +00:00
Godzil
c4418683c6
Add the hit function to get the closest non negative hit, and add some mecanisme to test that properly and report when no valid hit occur.
2020-02-17 12:24:15 +00:00
Godzil
1900d1f45d
Change the Intersection to a class, and stop using memory allocation for it (and pointer)
...
A bit more clean (on the code side)
2020-02-17 11:48:29 +00:00
Godzil
01a0de09ab
Add 3 new type of object: Sphere, Object and Intersect.
...
Add Intersect object as a way to report where a ray intersect another object and which one it is.
Add an Object base class for all object that can be rendered.
Add the Sphere object.
2020-02-17 11:16:20 +00:00