„Számítógépes grafika házi feladat tutorial” változatai közötti eltérés
| 1 201. sor: | 1 201. sor: | ||
RefractiveMaterial(float n, Color k) | RefractiveMaterial(float n, Color k) | ||
: ReflectiveMaterial | : ReflectiveMaterial(n, k), n(n), n_rec(1/n) | ||
{ } | { } | ||
| 1 229. sor: | 1 229. sor: | ||
</syntaxhighlight> <br/> | </syntaxhighlight> <br/> | ||
* Az eredménye: [http://pastebin.com/ | * Az eredménye: [http://pastebin.com/SaDjnCnU Üveg kocka] | ||
http://i.imgur.com/s6ZyCLT.png | http://i.imgur.com/s6ZyCLT.png | ||