library: implement refraction
This necessitated to rework how light properties for a material were given. A material can have either reflectivity or transparency. This changes the parsing of materials, using a `LightProperty` structure at its core. This is does not implement the true Fresnel equations to take into account the amount of reflection that an incident goes through when encountering a transparent object.
This commit is contained in:
parent
e00950c7e5
commit
552c0cb966
9 changed files with 255 additions and 93 deletions
|
|
@ -0,0 +1,3 @@
|
|||
pub fn default_identity() -> f32 {
|
||||
1.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue