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:
parent
ca1f2f9078
commit
664fbb87f5
3 changed files with 8 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue