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

Function grad

tutorials/common/tutorial/noise.cpp:60–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 __forceinline float grad(int hash, float x) {
61 return x*g1[hash&127];
62 }
63
64 __forceinline float grad(int hash, float x, float y) {
65 int h = hash&127;

Callers 1

noiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected