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

Function reflect

tutorials/common/tutorial/optics.h:14–14  ·  view source on GitHub ↗

! Reflects a viewing vector V at a normal N. */

Source from the content-addressed store, hash-verified

12
13/*! Reflects a viewing vector V at a normal N. */
14inline Vec3fa reflect(const Vec3fa& V, const Vec3fa& N) { return 2.0f*dot(V,N)*N-V; }
15#ifdef ISPC
16inline Vec3fa reflect(const Vec3fa& V, const Vec3fa& N) { return 2.0f*dot(V,N)*N-V; }
17inline Vec3fa reflect(const Vec3fa& V, const Vec3fa& N) { return 2.0f*dot(V,N)*N-V; }

Callers 15

AnisotropicBlinn__evalFunction · 0.85
AnisotropicBlinn__sampleFunction · 0.85
MirrorMaterial__sampleFunction · 0.85
OBJMaterial__evalFunction · 0.85
OBJMaterial__sampleFunction · 0.85
renderPixelStandardFunction · 0.85
renderPixelFunction · 0.85
sampleFunction · 0.85

Calls 1

dotFunction · 0.50

Tested by

no test coverage detected