Adjust fov and camera position

This commit is contained in:
Maximilian Ammann 2022-03-24 10:43:26 +01:00
parent 94849e976b
commit 506ace5d83
2 changed files with 3 additions and 3 deletions

View File

@ -256,7 +256,7 @@ impl RenderState {
};
let camera = camera::Camera::new(
(0.0, 0.0, 500.0),
(0.0, 0.0, 150.0),
cgmath::Deg(-90.0),
cgmath::Deg(0.0),
size.width,
@ -265,7 +265,7 @@ impl RenderState {
let projection = camera::Perspective::new(
surface_config.width,
surface_config.height,
cgmath::Deg(45.0),
cgmath::Deg(110.0),
10.0,
600.0,
);

View File

@ -26,7 +26,7 @@ fn main(
[[builtin(instance_index)]] instance_idx: u32 // instance_index is used when we have multiple instances of the same "object"
) -> VertexOutput {
let z = 0.0;
let width = 1.0;
let width = 2.0;
// The following code moves all "invisible" vertices to (0, 0, 0)
//if (color.w == 0.0) {