Struct amethyst_renderer::Layer [] [src]

pub struct Layer {
    pub target: String,
    pub passes: Vec<Box<PassDescription>>,
}

A stackable image layer.

Layers contain a list of passes which are used to render a final image which is then composited onto a render target. They are especially useful for postprocessing, e.g. applying a fullscreen night vision effect, drawing a HUD (heads-up display) over a rendered scene.

Fields

Name of the render target to draw on.

Sequence of passes to execute over the render target.

Methods

impl Layer
[src]

Creates a new layer with the given list of passes and the name of the render target