Skip to content

Commit

Permalink
add render layer 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Aug 2, 2024
1 parent 31b2188 commit 92668ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_vrm/src/extensions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl BevyExtensionImport<GltfDocument> for VrmExtensions {
.unwrap_or_default();

if flag == FirstPersonFlag::Auto {
// If mesh is child of the head bone, or a vertex contains the weight of the head bone
// TODO: If mesh is child of the head bone, or a vertex contains the weight of the head bone
// then change to ThirdPersonOnly. Otherwise, change to Both.
}

Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_vrm/src/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ pub static RENDER_LAYERS: LazyLock<HashMap<FirstPersonFlag, RenderLayers>> = Laz

map.insert(
FirstPersonFlag::Auto,
RenderLayers::from_layers(&[FIRST_PERSON_LAYER, THIRD_PERSON_LAYER]),
RenderLayers::from_layers(&[0, FIRST_PERSON_LAYER, THIRD_PERSON_LAYER]),
);
map.insert(
FirstPersonFlag::Both,
RenderLayers::from_layers(&[FIRST_PERSON_LAYER, THIRD_PERSON_LAYER]),
RenderLayers::from_layers(&[0, FIRST_PERSON_LAYER, THIRD_PERSON_LAYER]),
);
map.insert(
FirstPersonFlag::FirstPersonOnly,
Expand Down

0 comments on commit 92668ef

Please sign in to comment.