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

Function face_forward

tutorials/pathtracer/pathtracer_device.cpp:975–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973} // convertScene
974
975inline Vec3fa face_forward(const Vec3fa& dir, const Vec3fa& _Ng) {
976 const Vec3fa Ng = _Ng;
977 return dot(dir,Ng) < 0.0f ? Ng : neg(Ng);
978}
979
980inline Vec3fa derivBezier(const ISPCHairSet* mesh, const unsigned int primID, const float t, const float time)
981{

Callers 1

renderPixelFunctionFunction · 0.70

Calls 2

negFunction · 0.85
dotFunction · 0.50

Tested by

no test coverage detected