MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / linear_to_srgb

Function linear_to_srgb

tools/bloom-reference/src/main.rs:1910–1916  ·  view source on GitHub ↗
(c: f32)

Source from the content-addressed store, hash-verified

1908}
1909
1910fn linear_to_srgb(c: f32) -> f32 {
1911 if c <= 0.0031308 {
1912 12.92 * c
1913 } else {
1914 1.055 * c.powf(1.0 / 2.4) - 0.055
1915 }
1916}
1917
1918// ============================================================
1919// Render loop

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected