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

@ -99,6 +99,18 @@ namespace sprout {
);
}
//
// negate
//
template<typename Vector>
inline SPROUT_CONSTEXPR Vector negate(Vector const& vec) {
return sprout::tuples::remake<Vector>(
vec,
-sprout::darkroom::coords::x(vec),
-sprout::darkroom::coords::y(vec),
-sprout::darkroom::coords::z(vec)
);
}
//
// dot
//
template<typename Vector>