diff --git a/src/config.h b/src/config.h index c54583e74..df17c2876 100644 --- a/src/config.h +++ b/src/config.h @@ -107,7 +107,7 @@ #define RL_MAX_MATRIX_STACK_SIZE 32 // Maximum size of internal Matrix stack -#define RL_MAX_SHADER_LOCATIONS 32 // Maximum number of shader locations supported +#define RL_MAX_SHADER_LOCATIONS 64 // Maximum number of shader locations supported #define RL_CULL_DISTANCE_NEAR 0.01 // Default projection matrix near cull distance #define RL_CULL_DISTANCE_FAR 1000.0 // Default projection matrix far cull distance diff --git a/src/raylib.h b/src/raylib.h index b1da83cb8..ddabe14af 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -790,7 +790,9 @@ typedef enum { SHADER_LOC_MAP_CUBEMAP, // Shader location: samplerCube texture: cubemap SHADER_LOC_MAP_IRRADIANCE, // Shader location: samplerCube texture: irradiance SHADER_LOC_MAP_PREFILTER, // Shader location: samplerCube texture: prefilter - SHADER_LOC_MAP_BRDF // Shader location: sampler2d texture: brdf + SHADER_LOC_MAP_BRDF, // Shader location: sampler2d texture: brdf + + SHADER_LOC_USER } ShaderLocationIndex; #define SHADER_LOC_MAP_DIFFUSE SHADER_LOC_MAP_ALBEDO