vulkano/examples/deferred/frame/mod.rs
marc0246 cf31f4e059
Check formatting in CI (#2442)
* Check formatting in CI

* Fix existing fomatting inconsistencies

* Update PR template
2024-01-03 02:45:14 -06:00

20 lines
566 B
Rust

// This module exposes what is needed in order to draw with a deferred rendering system.
//
// The main code is in the `system` module, while the other modules implement the different kinds
// of lighting sources.
pub use self::system::{FrameSystem, Pass};
use vulkano::{buffer::BufferContents, pipeline::graphics::vertex_input::Vertex};
mod ambient_lighting_system;
mod directional_lighting_system;
mod point_lighting_system;
mod system;
#[derive(BufferContents, Vertex)]
#[repr(C)]
struct LightingVertex {
#[format(R32G32_SFLOAT)]
position: [f32; 2],
}