Skip to main content

FullscreenMaterial

Trait FullscreenMaterial 

Source
pub trait FullscreenMaterial:
    Component
    + ExtractComponent<RenderApp>
    + Clone
    + Copy
    + ShaderType
    + WriteInto
    + Default {
    // Required method
    fn fragment_shader() -> ShaderRef;

    // Provided methods
    fn schedule() -> impl ScheduleLabel + Clone { ... }
    fn schedule_configs(
        system: ScheduleConfigs<Box<dyn System<In = (), Out = ()>>>,
    ) -> ScheduleConfigs<Box<dyn System<In = (), Out = ()>>> { ... }
}
Expand description

A trait to define a material that will render to the entire screen using a fullscreen triangle.

Required Methods§

Source

fn fragment_shader() -> ShaderRef

The shader that will run on the entire screen using a fullscreen triangle.

Provided Methods§

Source

fn schedule() -> impl ScheduleLabel + Clone

The schedule this effect runs in.

Defaults to Core3d for 3D post-processing effects.

Source

fn schedule_configs( system: ScheduleConfigs<Box<dyn System<In = (), Out = ()>>>, ) -> ScheduleConfigs<Box<dyn System<In = (), Out = ()>>>

Configures this effect’s system set and system order.

By default it’s in Core3dSystems::PostProcess and before tonemapping.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§