Add support for point light and materials.

Add material to objects.
This commit is contained in:
Godzil
2020-02-17 19:12:57 +00:00
parent 73d60fb7e4
commit 5ebed12f4f
10 changed files with 274 additions and 1 deletions

View File

@@ -5,8 +5,10 @@ add_library(rayonnement STATIC)
set(RAY_HEADERS include/tuple.h include/math_helper.h include/colour.h include/canvas.h
include/matrix.h include/transformation.h include/intersect.h include/intersection.h
include/light.h include/material.h
include/object.h include/ray.h include/sphere.h)
set(RAY_SOURCES tuple.cpp math_helper.cpp colour.cpp canvas.cpp matrix.cpp transformation.cpp intersect.cpp
objects/light.cpp objects/material.cpp
objects/object.cpp objects/ray.cpp objects/sphere.cpp)
target_include_directories(rayonnement PUBLIC include)