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

Function lerp

tools/bloom-reference/src/main.rs:372–374  ·  view source on GitHub ↗
(a: f32, b: f32, t: f32)

Source from the content-addressed store, hash-verified

370}
371
372fn lerp(a: f32, b: f32, t: f32) -> f32 {
373 a + (b - a) * t
374}
375
376/// Shared bilinear coord computation so every texture sampler does
377/// the same wrapping and interpolation math.

Callers 2

sample_texture_srgbMethod · 0.70
sample_texture_linearMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected