mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
sprout/darkroom/objects/aa_plane.hpp 修正
This commit is contained in:
parent
a4c71d0e9f
commit
3aee992fc9
1 changed files with 7 additions and 8 deletions
|
@ -71,26 +71,25 @@ namespace sprout {
|
|||
position_type const& normal
|
||||
) const
|
||||
{
|
||||
using std::fmod;
|
||||
return typename intersection<Ray>::type(
|
||||
does_intersect,
|
||||
distance,
|
||||
point_of_intersection,
|
||||
normal,
|
||||
is_x() ? sprout::darkroom::materials::calc_material( // ! Tile
|
||||
is_x() ? sprout::darkroom::materials::calc_material(
|
||||
mat_,
|
||||
fmod(sprout::darkroom::coords::z(point_of_intersection), 0.5),
|
||||
fmod(sprout::darkroom::coords::y(point_of_intersection), 0.5)
|
||||
sprout::darkroom::coords::z(point_of_intersection),
|
||||
sprout::darkroom::coords::y(point_of_intersection)
|
||||
)
|
||||
: is_y() ? sprout::darkroom::materials::calc_material(
|
||||
mat_,
|
||||
fmod(sprout::darkroom::coords::x(point_of_intersection), 0.5),
|
||||
fmod(sprout::darkroom::coords::z(point_of_intersection), 0.5)
|
||||
sprout::darkroom::coords::x(point_of_intersection),
|
||||
sprout::darkroom::coords::z(point_of_intersection)
|
||||
)
|
||||
: sprout::darkroom::materials::calc_material(
|
||||
mat_,
|
||||
fmod(sprout::darkroom::coords::x(point_of_intersection), 0.5),
|
||||
fmod(sprout::darkroom::coords::y(point_of_intersection), 0.5)
|
||||
sprout::darkroom::coords::x(point_of_intersection),
|
||||
sprout::darkroom::coords::y(point_of_intersection)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue