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

Method next_f32

tools/bloom-reference/src/main.rs:1044–1046  ·  view source on GitHub ↗

Uniform in [0, 1).

(&mut self)

Source from the content-addressed store, hash-verified

1042
1043 /// Uniform in [0, 1).
1044 fn next_f32(&mut self) -> f32 {
1045 (self.next_u32() >> 8) as f32 / (1u32 << 24) as f32
1046 }
1047
1048 fn next_vec2(&mut self) -> Vec2 {
1049 Vec2::new(self.next_f32(), self.next_f32())

Callers 4

next_vec2Method · 0.80
sample_brdfFunction · 0.80
sample_importanceMethod · 0.80
trace_pathFunction · 0.80

Calls 1

next_u32Method · 0.80

Tested by

no test coverage detected