vkoskiv / c-ray

c-ray is a small, simple path tracer written in C
MIT License
797 stars 44 forks source link

Rework parsing and instance handling #110

Closed vkoskiv closed 2 years ago

vkoskiv commented 2 years ago

Move materials to instances, so we can change them on a per-instance basis instead of globally for every instance of a given object. Global overrides can still be done by placing the "materials" array/object at the root of the object instead of in each instance. Also merge in the incomplete glTF stuff so I can work on it in master directly.