mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
34736a675a
* Remove license notices from source files * Add license notices for rangemap
21 lines
598 B
Rust
21 lines
598 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.
|
|
|
|
use vulkano::{buffer::BufferContents, pipeline::graphics::vertex_input::Vertex};
|
|
|
|
pub use self::system::{DrawPass, Frame, FrameSystem, LightingPass, Pass};
|
|
|
|
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],
|
|
}
|