83 m_hit(hit), m_usage(usage)
97 const auto uvwCoords =
uvw();
98 return {uvwCoords.x(), uvwCoords.y()};
Detailed information regarding a ray-primitive intersection.
Definition HitDetail.h:26
uint64 getFaceID() const
Get the face ID associated to the hit.
Definition HitDetail.h:153
const Primitive * getPrimitive() const
Definition HitDetail.h:163
math::Vector3R getUVW() const
Definition HitDetail.h:168
real getRayT() const
Get the parametric distance from the incident ray's origin. Notice that parametric distance is not or...
Definition HitDetail.h:148
FaceTopology getFaceTopology() const
Definition HitDetail.h:158
HitDetail & setHitIntrinsics(const Primitive *primitive, const math::Vector3R &uvw, real rayT, uint64 faceID=NO_FACE_ID, FaceTopology faceTopology=FaceTopology(EFaceTopology::General))
Set essential attributes that are independent to the coordinate system.
Definition HitDetail.cpp:23
Definition SampleLocation.h:22
void setUvw(const math::Vector3R &uvw)
Definition SampleLocation.h:101
void setUv(const math::Vector2R &uv)
Definition SampleLocation.h:111
math::EColorUsage expectedUsage() const
Gets expected type of the usage for the sample.
Definition SampleLocation.h:123
SampleLocation(const math::Vector3R &uvw, math::EColorUsage usage)
Constructs a sample location at .
Definition SampleLocation.h:70
math::Vector2R uv() const
Definition SampleLocation.h:95
math::Vector3R uvw() const
Gets and sets the uvw coordinates of this sample location.
Definition SampleLocation.h:90
SampleLocation getUvwScaled(const math::Vector3R &scale) const
Definition SampleLocation.h:116
T & x()
Definition TVector2.ipp:38
T & y()
Definition TVector2.ipp:44
Derived mul(const Derived &rhs) const
Definition TArithmeticArrayBase.ipp:98
EColorUsage
Definition color_enums.h:140
The root for all renderer implementations.
Definition EEngineProject.h:6