Implements ShadowMap (2048x2048 Depth32Float texture with comparison sampler), shadow_shader.wgsl (depth-only vertex shader), shadow_pipeline (front-face culling, depth bias constant=2/slope=2.0), and associated uniform types. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
767 B
Rust
25 lines
767 B
Rust
pub mod gpu;
|
|
pub mod light;
|
|
pub mod obj;
|
|
pub mod pipeline;
|
|
pub mod texture;
|
|
pub mod vertex;
|
|
pub mod mesh;
|
|
pub mod camera;
|
|
pub mod material;
|
|
pub mod sphere;
|
|
pub mod pbr_pipeline;
|
|
pub mod shadow;
|
|
pub mod shadow_pipeline;
|
|
|
|
pub use gpu::{GpuContext, DEPTH_FORMAT};
|
|
pub use light::{CameraUniform, LightUniform, LightData, LightsUniform, MAX_LIGHTS, LIGHT_DIRECTIONAL, LIGHT_POINT, LIGHT_SPOT};
|
|
pub use mesh::Mesh;
|
|
pub use camera::{Camera, FpsController};
|
|
pub use texture::GpuTexture;
|
|
pub use material::MaterialUniform;
|
|
pub use sphere::generate_sphere;
|
|
pub use pbr_pipeline::create_pbr_pipeline;
|
|
pub use shadow::{ShadowMap, ShadowUniform, ShadowPassUniform, SHADOW_MAP_SIZE, SHADOW_FORMAT};
|
|
pub use shadow_pipeline::{create_shadow_pipeline, shadow_pass_bind_group_layout};
|