hypercuber
parent
3bcbbe6c71
commit
63d276f664
|
@ -73,7 +73,11 @@ fn main() {
|
||||||
let position = (instant / 10.0) * 3.14 * 2.0;
|
let position = (instant / 10.0) * 3.14 * 2.0;
|
||||||
|
|
||||||
let view = cgm::Matrix4::look_at(
|
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::Point3::new(0.0, 0.0, 0.0),
|
||||||
cgm::Vector3::new(0.0, 0.0, 1.0)
|
cgm::Vector3::new(0.0, 0.0, 1.0)
|
||||||
);
|
);
|
||||||
|
|
|
@ -152,7 +152,7 @@ impl<WT: 'static + Send + Sync> Instance<WT> {
|
||||||
cgm::Rad::from(cgm::Deg(45.0)),
|
cgm::Rad::from(cgm::Deg(45.0)),
|
||||||
dimensions[0] / dimensions[1],
|
dimensions[0] / dimensions[1],
|
||||||
0.1,
|
0.1,
|
||||||
10.0
|
1000.0
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut buffers: Vec<Box<vc::AutoCommandBuffer>> = vec![];
|
let mut buffers: Vec<Box<vc::AutoCommandBuffer>> = vec![];
|
||||||
|
|
Loading…
Reference in New Issue