1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! Physically based rendering implementation

use dotrix_core::Application;
use dotrix_core::ecs::System;

mod light;
mod material;
mod model;

/// Solid models rendering
pub mod solid;

/// Skeletal models rendering
pub mod skeletal;

pub use light::{ Light, Lights };
pub use material::Material;
pub use model::Model;

/// Enables PBR Dotrix Extension
pub fn extension(app: &mut Application) {
    app.add_system(System::from(material::startup));
    app.add_system(System::from(light::startup));
    app.add_system(System::from(light::bind));

    solid::extension(app);
    skeletal::extension(app);
}