add Dielectric material
This commit is contained in:
parent
a596058a0d
commit
dde1f91f01
3 changed files with 29 additions and 5 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue