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

darkroom/objects/aa_plane.hpp 追加

darkroom/tracers/raytracer.hpp で、uv座標への変換で上下が反転していた問題を修正。
This commit is contained in:
bolero-MURAKAMI 2011-12-12 01:18:01 +09:00
parent 034bd6f7e4
commit c86fa430c1
4 changed files with 214 additions and 2 deletions

View file

@ -41,7 +41,7 @@ namespace sprout {
lights,
camera.template operator()(
static_cast<typename Camera::unit_type>(x) / width - 0.5,
static_cast<typename Camera::unit_type>(y) / height - 0.5
-(static_cast<typename Camera::unit_type>(y) / height - 0.5)
),
depth_max
);