mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-07-02 14:04:09 +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
|
position_type const& normal
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
using std::fmod;
|
|
||||||
return typename intersection<Ray>::type(
|
return typename intersection<Ray>::type(
|
||||||
does_intersect,
|
does_intersect,
|
||||||
distance,
|
distance,
|
||||||
point_of_intersection,
|
point_of_intersection,
|
||||||
normal,
|
normal,
|
||||||
is_x() ? sprout::darkroom::materials::calc_material( // ! Tile
|
is_x() ? sprout::darkroom::materials::calc_material(
|
||||||
mat_,
|
mat_,
|
||||||
fmod(sprout::darkroom::coords::z(point_of_intersection), 0.5),
|
sprout::darkroom::coords::z(point_of_intersection),
|
||||||
fmod(sprout::darkroom::coords::y(point_of_intersection), 0.5)
|
sprout::darkroom::coords::y(point_of_intersection)
|
||||||
)
|
)
|
||||||
: is_y() ? sprout::darkroom::materials::calc_material(
|
: is_y() ? sprout::darkroom::materials::calc_material(
|
||||||
mat_,
|
mat_,
|
||||||
fmod(sprout::darkroom::coords::x(point_of_intersection), 0.5),
|
sprout::darkroom::coords::x(point_of_intersection),
|
||||||
fmod(sprout::darkroom::coords::z(point_of_intersection), 0.5)
|
sprout::darkroom::coords::z(point_of_intersection)
|
||||||
)
|
)
|
||||||
: sprout::darkroom::materials::calc_material(
|
: sprout::darkroom::materials::calc_material(
|
||||||
mat_,
|
mat_,
|
||||||
fmod(sprout::darkroom::coords::x(point_of_intersection), 0.5),
|
sprout::darkroom::coords::x(point_of_intersection),
|
||||||
fmod(sprout::darkroom::coords::y(point_of_intersection), 0.5)
|
sprout::darkroom::coords::y(point_of_intersection)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue