add Dielectric material

This commit is contained in:
Fabien Freling 2021-05-27 21:48:57 +02:00
parent a596058a0d
commit dde1f91f01
3 changed files with 29 additions and 5 deletions

View file

@ -97,14 +97,13 @@ pub fn main() anyerror!void {
}
};
const materialCenter = Material{
.lambertian = material.Lambertian{
.color = Color{ .x = 0.7, .y = 0.3, .z = 0.3 },
.dielectric = material.Dielectric{
.refraction_index = 1.5,
}
};
const materialLeft = Material{
.metal = material.Metal{
.color = Color{ .x = 0.8, .y = 0.8, .z = 0.8 },
.fuzz = 0.3,
.dielectric = material.Dielectric{
.refraction_index = 1.5,
}
};
const materialRight = Material{