Skip to main content

sample_texture

Function sample_texture 

Source
pub fn sample_texture(texture: &Texture, uv: (f32, f32)) -> [u8; 4]
Expand description

Samples one texture. Pure function so the rasterizer can call it per pixel without touching the store’s hash map.