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

fix darkroom: add alpha and refraction material parameter

This commit is contained in:
bolero-MURAKAMI 2013-12-03 22:17:49 +09:00
parent 4b5dd8ccc5
commit 014d339803
7 changed files with 263 additions and 81 deletions

View file

@ -44,15 +44,13 @@ namespace sprout {
//
// make_uniform_material_image
//
template<typename Color, typename Reflection>
template<typename... Elements>
inline SPROUT_CONSTEXPR sprout::tuples::tuple<
sprout::darkroom::materials::uniform_element<Color>,
sprout::darkroom::materials::uniform_element<Reflection>
sprout::darkroom::materials::uniform_element<Elements>...
>
make_uniform_material_image(Color const& col, Reflection const& ref) {
make_uniform_material_image(Elements const&... elems) {
return sprout::tuples::make_tuple(
sprout::darkroom::materials::make_uniform(col),
sprout::darkroom::materials::make_uniform(ref)
sprout::darkroom::materials::make_uniform(elems)...
);
}
} // namespace materials