bevy_feronia 0.8.2

Foliage/grass scattering tools and wind simulation shaders/materials that prioritize visual fidelity/artistic freedom, a declarative api and modularity.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::prelude::*;
use bevy_ecs::prelude::*;
use std::{borrow::Cow, fmt::Debug};

pub fn scatter_layer<T>(name: impl Into<Cow<'static, str>>) -> impl Bundle
where
    T: ScatterMaterial + Debug,
{
    (
        Name::new(name),
        ScatterLayer::default(),
        ScatterLayerType::<T>::default(),
    )
}