| 202 | } |
| 203 | |
| 204 | Vec3fa 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 */ |
| 214 | Vec3fa renderPixelDebugShader(const DebugShaderData& data, float x, float y, const ISPCCamera& camera, RayStats& stats, const RTCFeatureFlags feature_mask) |
no test coverage detected