Function crispy::shaders::covering_vertices
source · fn covering_vertices<F: Facade>(
facade: &F,
(width, height): (u32, u32),
) -> Result<(VertexBuffer<Vertex>, IndexBuffer<u16>), Box<dyn Error>>
Expand description
A stretched triangle to cover all area. No need for a quad. Half of the triangle will be outside of the surface.
◣
□◣