1
0
Fork 0
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:
bolero-MURAKAMI 2012-08-13 23:55:30 +09:00
parent 744146ae38
commit 6b1efc8a15
8 changed files with 128 additions and 22 deletions

View file

@ -90,7 +90,7 @@ namespace sprout {
return sprout::darkroom::materials::bilinear_interpolate(
get_color(x0, y0), get_color(x0 + 1, y0),
get_color(x0, y0 + 1), get_color(x0 + 1, y0 + 1),
1 - (x - x0), 1 - (y - y0)
x - x0, y - y0
);
}
template<typename Unit>