hypercuber

ecs
q3k 2020-03-16 00:40:04 +01:00
parent 3bcbbe6c71
commit 63d276f664
2 changed files with 6 additions and 2 deletions

View File

@ -73,7 +73,11 @@ fn main() {
let position = (instant / 10.0) * 3.14 * 2.0;
let view = cgm::Matrix4::look_at(
cgm::Point3::new(position.cos() * 5.0, position.sin() * 5.0, 2.0),
cgm::Point3::new(
position.cos() * 10.0 * (((position*2.0).cos()/2.0)+1.0),
position.sin() * 10.0 * (((position*2.0).cos()/2.0)+1.0),
2.0
),
cgm::Point3::new(0.0, 0.0, 0.0),
cgm::Vector3::new(0.0, 0.0, 1.0)
);

View File

@ -152,7 +152,7 @@ impl<WT: 'static + Send + Sync> Instance<WT> {
cgm::Rad::from(cgm::Deg(45.0)),
dimensions[0] / dimensions[1],
0.1,
10.0
1000.0
);
let mut buffers: Vec<Box<vc::AutoCommandBuffer>> = vec![];