Move modules to lib crate
This commit is contained in:
parent
d17a3e3613
commit
36e0ea9432
|
|
@ -2,20 +2,15 @@ use std::error::Error;
|
||||||
|
|
||||||
use glam::{mat3, uvec2, vec3, Vec3};
|
use glam::{mat3, uvec2, vec3, Vec3};
|
||||||
use image::ImageReader;
|
use image::ImageReader;
|
||||||
use present::Presenter;
|
use raytracing3::anim;
|
||||||
use trace::{Tracer, TracerData, TracerEnv};
|
use raytracing3::present::{self, Presenter};
|
||||||
|
use raytracing3::trace::{self, Tracer, TracerData, TracerEnv};
|
||||||
use winit::{
|
use winit::{
|
||||||
event::{Event, WindowEvent},
|
event::{Event, WindowEvent},
|
||||||
event_loop::EventLoop,
|
event_loop::EventLoop,
|
||||||
window::{Window, WindowAttributes},
|
window::{Window, WindowAttributes},
|
||||||
};
|
};
|
||||||
|
|
||||||
mod anim;
|
|
||||||
mod present;
|
|
||||||
mod trace;
|
|
||||||
|
|
||||||
pub use trace::Sphere;
|
|
||||||
|
|
||||||
struct CamLoc {
|
struct CamLoc {
|
||||||
eye: Vec3,
|
eye: Vec3,
|
||||||
forward: Vec3,
|
forward: Vec3,
|
||||||
|
|
|
||||||
|
|
@ -1 +1,6 @@
|
||||||
|
pub mod anim;
|
||||||
pub mod perlin;
|
pub mod perlin;
|
||||||
|
pub mod present;
|
||||||
|
pub mod trace;
|
||||||
|
|
||||||
|
pub use trace::Sphere;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user