mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add is_from_inside property
This commit is contained in:
parent
014d339803
commit
8e3c426684
4 changed files with 64 additions and 22 deletions
|
@ -43,7 +43,8 @@ namespace sprout {
|
|||
std::declval<material_type const&>(),
|
||||
std::declval<unit_type const&>(),
|
||||
std::declval<unit_type const&>()
|
||||
))
|
||||
)),
|
||||
bool
|
||||
> type;
|
||||
};
|
||||
private:
|
||||
|
@ -72,7 +73,8 @@ namespace sprout {
|
|||
: position_type(0, 0, 0)
|
||||
,
|
||||
normal_,//hit_side > 0 ? normal_ : sprout::darkroom::coords::negate(normal_),
|
||||
sprout::darkroom::materials::calculate_material(mat_, unit_type(0), unit_type(0)) // ???
|
||||
sprout::darkroom::materials::calculate_material(mat_, unit_type(0), unit_type(0)), // ???
|
||||
false // !!! is_from_inside
|
||||
);
|
||||
}
|
||||
template<typename Ray>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue