pub struct SpriteDraw {
pub layer: u8,
pub image: u32,
pub frame: usize,
pub blend: i32,
pub rgba: [f32; 4],
pub quad: [SpriteVertex; 4],
pub burn: bool,
}Expand description
One sprite draw handed to the renderer in FrameInput::sprites.
Fields§
§layer: u8Where it is drawn: 1..=4 into the feedback image (between warp / shapes / waves / main wave, so it
goes through the composite and is warped next frame), 0 onto the composited output. Other values are
not drawn.
image: u32Image id given to Renderer::set_sprite_image.
frame: usizeFrame of that image (animated GIFs); out of range draws nothing.
blend: i32Blend mode 0..=10; any other value behaves as mode 0.
rgba: [f32; 4]r, g, b clamped to 0..1; a is the per-frame alpha times the preset’s SpriteAlpha, not
clamped (the vertex colour byte wraps like trunc(255 a) & 0xFF).
quad: [SpriteVertex; 4]Triangle-strip order.
burn: boolLayer 0: the sprite is also drawn into the feedback image after the composite has read it. Layers 1..4
already draw into the feedback image; there a burning sprite is drawn twice
(CompatRules::md3_sprite_burn_twice).