Struct three_d::Imposters [−][src]
pub struct Imposters { /* fields omitted */ }
Expand description
A level-of-detail technique to replace rendering high-poly meshes at a distance. A mesh is rendered from different angles into a set of textures and the textures are then rendered continuously instead of the high-poly meshes.
Implementations
impl Imposters
[src]
impl Imposters
[src]pub fn new(context: &Context) -> Result<Self, Error>
[src]
pub fn update_texture<F: Fn(Viewport, &Camera) -> Result<(), Error>>(
&mut self,
render: F,
aabb: (Vec3, Vec3),
max_texture_size: usize
) -> Result<(), Error>
[src]
&mut self,
render: F,
aabb: (Vec3, Vec3),
max_texture_size: usize
) -> Result<(), Error>