NOTE: uniform is thread-safe since random generator is in a thread_local variable
| 38 | |
| 39 | // NOTE: uniform is thread-safe since random generator is in a thread_local variable |
| 40 | float uniform() { |
| 41 | return random.uniform(random.rng); |
| 42 | } |
| 43 | |
| 44 | // NOTE: This function only applies gamma. |
| 45 | uint32_t convert_sRGB(vec3 color) { |
no outgoing calls
no test coverage detected