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

Function faceforward

tutorials/common/tutorial/tutorial_device.h:75–77  ·  view source on GitHub ↗

face forward for shading normals */

Source from the content-addressed store, hash-verified

73
74/* face forward for shading normals */
75inline Vec3fa faceforward( const Vec3fa& N, const Vec3fa& I, const Vec3fa& Ng ) {
76 Vec3fa NN = N; return dot(I, Ng) < 0 ? NN : neg(NN);
77}
78
79/* GLFW keys codes */
80#if !defined(GLFW_KEY_F1)

Callers 1

renderPixelAOShaderFunction · 0.85

Calls 2

negFunction · 0.85
dotFunction · 0.50

Tested by

no test coverage detected