Struct radiant_rs::postprocessors::Bloom[][src]

pub struct Bloom {
    pub iterations: u8,
    pub iter_blend: BlendMode,
    pub draw_blend: BlendMode,
    pub draw_color: Color,
    pub clear: bool,
    pub vertical: u8,
    pub horizontal: u8,
    // some fields omitted
}

A simple bloom postprocessor.

This effect internally uses textures of decreasing dimensions to amplify an initially small blur effect via linear interpolation performed by the gpu when scaling texture contents.

Fields

Number of blur iterations.

Blendmode to use in blur iterations.

Blendmode to use for the final drawing operation.

Color multiplicator for the final drawing operation.

Clear internal textures before processing.

Number of scaling steps used vertically. Limited to 5.

Number of scaling steps used horizontally. Limited to 5.

Methods

impl Bloom
[src]

Creates a new Bloom effect instance. Initial texture size is computed from frame dimensions divided by base_divider. For each additional texture base_divider is multiplied by divider_factor.

Rebuilds internal textures to current frame size. Initial texture size is computed from frame dimensions divided by base_divider. For each additional texture base_divider is multiplied by divider_factor.

Trait Implementations

impl Postprocessor for Bloom
[src]

Custom type for the args parameter supplied to process() and draw().

Returns the target where the postprocessor expects the unprocessed input.

Process received data.

Draw processed input. The renderer has already set the correct target.

Auto Trait Implementations

impl !Send for Bloom

impl !Sync for Bloom