Skip to content

Commit 979ab11

Browse files
committed
increase morph targets to 256
1 parent 8b36cca commit 979ab11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_mesh/src/morph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const MAX_TEXTURE_WIDTH: u32 = 2048;
1414
const MAX_COMPONENTS: u32 = MAX_TEXTURE_WIDTH * MAX_TEXTURE_WIDTH;
1515

1616
/// Max target count available for [morph targets](MorphWeights).
17-
pub const MAX_MORPH_WEIGHTS: usize = 64;
17+
pub const MAX_MORPH_WEIGHTS: usize = 256;
1818

1919
#[derive(Error, Clone, Debug)]
2020
pub enum MorphBuildError {

crates/bevy_pbr/src/render/mesh_types.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct SkinnedMesh {
3434

3535
#ifdef MORPH_TARGETS
3636
struct MorphWeights {
37-
weights: array<vec4<f32>, 16u>, // 16 = 64 / 4 (64 = MAX_MORPH_WEIGHTS)
37+
weights: array<vec4<f32>, 64u>, // 64 = 256 / 4 (256 = MAX_MORPH_WEIGHTS)
3838
};
3939
#endif
4040

0 commit comments

Comments
 (0)