simplify: Increase maximum number of attributes to 32

Generally speaking 16 is plenty, but there are some cases where it's not
quite enough and having some room would be good for experimentation.
This commit is contained in:
Arseny Kapoulkine
2024-07-12 11:15:34 -07:00
parent 564bf17b7b
commit bd2eb4f0e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ MESHOPTIMIZER_API size_t meshopt_simplify(unsigned int* destination, const unsig
*
* vertex_attributes should have attribute_count floats for each vertex
* attribute_weights should have attribute_count floats in total; the weights determine relative priority of attributes between each other and wrt position. The recommended weight range is [1e-3..1e-1], assuming attribute data is in [0..1] range.
* attribute_count must be <= 16
* attribute_count must be <= 32
* vertex_lock can be NULL; when it's not NULL, it should have a value for each vertex; 1 denotes vertices that can't be moved
* TODO target_error/result_error currently use combined distance+attribute error; this may change in the future
*/
+1 -1
View File
@@ -521,7 +521,7 @@ static void rescaleAttributes(float* result, const float* vertex_attributes_data
}
}
static const size_t kMaxAttributes = 16;
static const size_t kMaxAttributes = 32;
struct Quadric
{