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

Function face_forward

tutorials/viewer/viewer_device.cpp:198–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198inline Vec3fa face_forward(const Vec3fa& dir, const Vec3fa& _Ng) {
199 const Vec3fa Ng = _Ng;
200 return dot(dir,Ng) < 0.0f ? Ng : neg(Ng);
201}
202
203/* task that renders a single screen tile */
204void renderPixelStandard(const TutorialData& data,

Callers 1

renderPixelStandardFunction · 0.70

Calls 2

negFunction · 0.85
dotFunction · 0.50

Tested by

no test coverage detected