Skip to main content

Module fx

Module fx 

Source
Expand description

Per-scene shadow and post-processing settings. Plain data: the renderer reads them every frame, scripts change them through crate::script::Ctx (ctx.post(), ctx.shadows()).

use kvas_engine::fx::PostSettings;
let mut post = PostSettings::default();
post.bloom = 0.6;
assert!(post.any());

Structs§

PostEffect
A custom full-screen shader applied to the camera image (see shaders/fx in a project).
PostSettings
Screen-space effects applied after the scene is drawn. 0 turns an effect off.
ShadowSettings
Sun shadow quality and look.

Enums§

Upscaler
How a reduced render scale is brought back to the window size.