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

Function randomColor

tutorials/viewer/viewer_device_debug.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204Vec3fa randomColor(const int ID)
205{
206 int r = ((ID+13)*17*23) & 255;
207 int g = ((ID+15)*11*13) & 255;
208 int b = ((ID+17)* 7*19) & 255;
209 const float oneOver255f = 1.f/255.f;
210 return Vec3fa(r*oneOver255f,g*oneOver255f,b*oneOver255f);
211}
212
213/* renders a single pixel with eyelight shading */
214Vec3fa renderPixelDebugShader(const DebugShaderData& data, float x, float y, const ISPCCamera& camera, RayStats& stats, const RTCFeatureFlags feature_mask)

Callers 1

renderPixelDebugShaderFunction · 0.85

Calls 1

Vec3faClass · 0.50

Tested by

no test coverage detected