REVIEWED: Material params #1649

Just assigned a fixed memory size for custom Material parameters in case of being required, so we shouldn't worry about allocating/freeing them.
This commit is contained in:
Ray 2021-03-18 13:57:53 +01:00
parent ca1f2f9078
commit 664fbb87f5
3 changed files with 8 additions and 17 deletions

View file

@ -349,7 +349,7 @@ typedef struct MaterialMap {
typedef struct Material {
Shader shader; // Material shader
MaterialMap *maps; // Material maps array (MAX_MATERIAL_MAPS)
float *params; // Material generic parameters (if required)
float params[4]; // Material generic parameters (if required)
} Material;
// Transformation properties