add total internal reflection
This commit is contained in:
parent
dde1f91f01
commit
4a478b08a0
3 changed files with 18 additions and 11 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue