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:
parent
6b1efc8a15
commit
dc1e85923b
7 changed files with 285 additions and 33 deletions
|
@ -40,31 +40,12 @@ namespace sprout {
|
|||
unit_type const& intensity
|
||||
) const
|
||||
{
|
||||
return sprout::tuples::remake<color_type>(
|
||||
col_,
|
||||
sprout::darkroom::colors::r(col_)
|
||||
* sprout::darkroom::colors::r(
|
||||
sprout::darkroom::materials::color(
|
||||
sprout::darkroom::intersects::material(inter)
|
||||
)
|
||||
)
|
||||
* intensity
|
||||
,
|
||||
sprout::darkroom::colors::g(col_)
|
||||
* sprout::darkroom::colors::g(
|
||||
sprout::darkroom::materials::color(
|
||||
sprout::darkroom::intersects::material(inter)
|
||||
)
|
||||
)
|
||||
* intensity
|
||||
,
|
||||
sprout::darkroom::colors::b(col_)
|
||||
* sprout::darkroom::colors::b(
|
||||
sprout::darkroom::materials::color(
|
||||
sprout::darkroom::intersects::material(inter)
|
||||
)
|
||||
)
|
||||
* intensity
|
||||
return sprout::darkroom::colors::mul(
|
||||
sprout::darkroom::colors::filter(
|
||||
col_,
|
||||
sprout::darkroom::materials::color(sprout::darkroom::intersects::material(inter))
|
||||
),
|
||||
intensity
|
||||
);
|
||||
}
|
||||
template<typename Intersection, typename LightRayIntersection>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue