1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add darkroom light_list, parallel_light, ambient_light

fix darkroom whitted_style
This commit is contained in:
bolero-MURAKAMI 2012-08-14 18:17:48 +09:00
parent 6b1efc8a15
commit dc1e85923b
7 changed files with 285 additions and 33 deletions

View file

@ -140,10 +140,7 @@ namespace sprout {
1 - sprout::darkroom::materials::reflection(sprout::darkroom::intersects::material(inter))
),
sprout::darkroom::colors::mul(
sprout::darkroom::colors::filter(
sprout::darkroom::materials::color(sprout::darkroom::intersects::material(inter)),
mirror_color
),
mirror_color,
sprout::darkroom::materials::reflection(sprout::darkroom::intersects::material(inter))
)
)
@ -169,10 +166,10 @@ namespace sprout {
) const
{
return color_3<Color>(
ray,
inter,
diffuse_color,
sprout::darkroom::renderers::whitted_mirror().template operator()<Color>(
ray,
inter,
diffuse_color,
sprout::darkroom::renderers::whitted_mirror().template operator()<Color>(
camera,
objs,
lights,