changes.mady.by.user 3Delight
Saved on Oct 06, 2015
...
surface glass [[ string help = "Simple dielectric material" ]] ( float Ks = 1, color Cs = 1, float eta = 1.5 ) { Ci = Ks * reflection(N, eta) + Cs * refraction(N, eta); }
surface glass [[ string help = "Simple dielectric material" ]] ( float Ks = 1, color Cs = 1, float eta = 1.5 ) { float _eta = backfacing() ? 1/eta : eta; Ci = Ks * reflection(N, _eta) + Cs * refraction(N, _eta); }