mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix darkroom whitted_style
fix cbind
This commit is contained in:
parent
744146ae38
commit
6b1efc8a15
8 changed files with 128 additions and 22 deletions
|
@ -171,18 +171,6 @@ namespace sprout {
|
|||
sprout::darkroom::coords::scale(nor, sprout::darkroom::coords::dot(incid, nor) * 2)
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// normal_to_color
|
||||
//
|
||||
template<typename Color, typename Normal>
|
||||
inline SPROUT_CONSTEXPR Color normal_to_color(Normal const& nor) {
|
||||
return sprout::tuples::make<Color>(
|
||||
0.5 + sprout::darkroom::coords::x(nor) * 0.5,
|
||||
0.5 + sprout::darkroom::coords::y(nor) * 0.5,
|
||||
0.5 + sprout::darkroom::coords::z(nor) * 0.5
|
||||
);
|
||||
}
|
||||
} // namespace coords
|
||||
} // namespace darkroom
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue