mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-22 11:18:15 +00:00
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:
@@ -316,7 +316,7 @@ typedef enum {
|
||||
typedef struct Material {
|
||||
Shader shader; // Material shader
|
||||
MaterialMap *maps; // Material maps (MAX_MATERIAL_MAPS)
|
||||
float *params; // Material generic parameters (if required)
|
||||
float params[4]; // Material generic parameters (if required)
|
||||
} Material;
|
||||
|
||||
// Camera type, defines a camera position/orientation in 3d space
|
||||
|
Reference in New Issue
Block a user