We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11059de commit d72f486Copy full SHA for d72f486
crates/bevy_mesh/src/morph.rs
@@ -14,7 +14,7 @@ const MAX_TEXTURE_WIDTH: u32 = 2048;
14
const MAX_COMPONENTS: u32 = MAX_TEXTURE_WIDTH * MAX_TEXTURE_WIDTH;
15
16
/// Max target count available for [morph targets](MorphWeights).
17
-pub const MAX_MORPH_WEIGHTS: usize = 64;
+pub const MAX_MORPH_WEIGHTS: usize = 256;
18
19
#[derive(Error, Clone, Debug)]
20
pub enum MorphBuildError {
crates/bevy_pbr/src/render/mesh_types.wgsl
@@ -34,7 +34,7 @@ struct SkinnedMesh {
34
35
#ifdef MORPH_TARGETS
36
struct MorphWeights {
37
- weights: array<vec4<f32>, 16u>, // 16 = 64 / 4 (64 = MAX_MORPH_WEIGHTS)
+ weights: array<vec4<f32>, 64u>, // 64 = 256 / 4 (256 = MAX_MORPH_WEIGHTS)
38
};
39
#endif
40
0 commit comments