bevy-aqua-reflect 0.1.2

Planar scene reflections for bevy-aqua water surfaces.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Mirrored scene views for Aqua water surfaces.

mod camera;

use bevy::prelude::*;

#[derive(Debug, Default, Clone, Copy)]
pub struct AquaReflectPlugin;

impl Plugin for AquaReflectPlugin {
    fn build(&self, app: &mut App) {
        camera::add(app);
    }
}

/// Opts an entity and its descendants into Aqua's planar reflection cameras.
#[derive(Component, Debug, Default, Clone, Copy)]
pub struct ReflectedInWater;