added Materials

Lambertian: scatter ray randomly with absorption

Metal: reflect ray with absorption
This commit is contained in:
Moritz Gmeiner 2023-12-30 14:01:45 +01:00
commit 79869930cf
7 changed files with 92 additions and 38 deletions

View file

@ -27,7 +27,6 @@ if get_option('native')
endif
rand_proj = subproject('rand', default_options : ['warning_level=0', 'werror=false'])
rand_dep = rand_proj.get_variable('rand_dep')