laser colors, improve scaling (wip)
This commit is contained in:
@@ -118,9 +118,9 @@ where
|
||||
state: OverlayState {
|
||||
name: Arc::from("kbd"),
|
||||
show_hide: true,
|
||||
width,
|
||||
size: (size.x as _, size.y as _),
|
||||
grabbable: true,
|
||||
spawn_scale: width,
|
||||
spawn_point: vec3a(0., -0.5, -1.),
|
||||
interaction_transform,
|
||||
..Default::default()
|
||||
|
||||
@@ -128,7 +128,7 @@ impl ScreenPipeline {
|
||||
graphics.create_pipeline(
|
||||
view,
|
||||
shaders.get("vert_common").unwrap().clone(),
|
||||
shaders.get("frag_screen").unwrap().clone(),
|
||||
shaders.get("frag_sprite").unwrap().clone(),
|
||||
Format::R8G8B8A8_UNORM,
|
||||
// ImageLayout::TransferSrcOptimal,
|
||||
// ImageLayout::TransferSrcOptimal,
|
||||
@@ -416,9 +416,9 @@ where
|
||||
want_visible: session.show_screens.iter().any(|s| s == &*output.name),
|
||||
show_hide: true,
|
||||
grabbable: true,
|
||||
spawn_rotation: Quat::from_axis_angle(axis, angle),
|
||||
spawn_scale: 1.5,
|
||||
spawn_point: vec3a(0., 0.5, -1.),
|
||||
width: 1.,
|
||||
spawn_rotation: Quat::from_axis_angle(axis, angle),
|
||||
interaction_transform,
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
@@ -165,8 +165,8 @@ where
|
||||
state: OverlayState {
|
||||
name: "Watch".into(),
|
||||
size: (400, 200),
|
||||
width: 0.065,
|
||||
want_visible: true,
|
||||
spawn_scale: 0.065,
|
||||
spawn_point: state.session.watch_pos.into(),
|
||||
spawn_rotation: state.session.watch_rot,
|
||||
relative_to,
|
||||
|
||||
Reference in New Issue
Block a user