MCPcopy Create free account
hub / github.com/RenderKit/embree / face_forward

Function face_forward

tutorials/user_geometry/user_geometry_device.cpp:738–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738inline Vec3fa face_forward(const Vec3fa& dir, const Vec3fa& _Ng) {
739 const Vec3fa Ng = _Ng;
740 return dot(dir,Ng) < 0.0f ? Ng : neg(Ng);
741}
742
743/* task that renders a single screen tile */
744Vec3fa renderPixelStandard(const TutorialData& data,

Callers 1

renderPixelStandardFunction · 0.70

Calls 2

negFunction · 0.85
dotFunction · 0.50

Tested by

no test coverage detected