mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
cf31f4e059
* Check formatting in CI * Fix existing fomatting inconsistencies * Update PR template
20 lines
566 B
Rust
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],
|
|
}
|