add total internal reflection

This commit is contained in:
Fabien Freling 2021-05-27 22:03:28 +02:00
parent dde1f91f01
commit 4a478b08a0
3 changed files with 18 additions and 11 deletions

View file

@ -97,8 +97,8 @@ pub fn main() anyerror!void {
}
};
const materialCenter = Material{
.dielectric = material.Dielectric{
.refraction_index = 1.5,
.lambertian = material.Lambertian{
.color = Color{ .x = 0.1, .y = 0.2, .z = 0.5 },
}
};
const materialLeft = Material{