mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Adjust fov and camera position
This commit is contained in:
parent
94849e976b
commit
506ace5d83
@ -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,
|
||||
);
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user