Sample scene for CSG \o/

This commit is contained in:
Godzil
2020-03-06 21:55:32 +00:00
parent b5ee92c544
commit 57eff4830e
15 changed files with 147 additions and 72 deletions

View File

@@ -31,7 +31,7 @@ int main()
Light light = Light(POINT_LIGHT, Point(0, 100, 0), Colour(1, 1, 1));
w.addLight(&light);
Sphere sp = Sphere();;
Sphere sp = Sphere();
sp.setTransform(translation(0, 0, 5) * scaling(0.75, 0.75, 0.75));
sp.material.diffuse = 0.4;
sp.material.specular = 0.6;