Adding support for PBR materials -IN PROGRESS-
Review models module (materials, mesh functionality)
This commit is contained in:
parent
32fc3608ea
commit
9fdac1b7ae
1 changed files with 355 additions and 74 deletions
10
src/rlgl.h
10
src/rlgl.h
|
|
@ -105,11 +105,6 @@
|
|||
#define MAX_QUADS_BATCH 1024 // Be careful with text, every letter maps a quad
|
||||
#endif
|
||||
|
||||
// Shader and material limits
|
||||
#define MAX_SHADER_LOCATIONS 32
|
||||
#define MAX_MATERIAL_TEXTURE_MAPS 8
|
||||
#define MAX_MATERIAL_PARAMS 8
|
||||
|
||||
// Texture parameters (equivalent to OpenGL defines)
|
||||
#define RL_TEXTURE_WRAP_S 0x2802 // GL_TEXTURE_WRAP_S
|
||||
#define RL_TEXTURE_WRAP_T 0x2803 // GL_TEXTURE_WRAP_T
|
||||
|
|
@ -237,6 +232,11 @@ typedef unsigned char byte;
|
|||
unsigned int vboId[7]; // OpenGL Vertex Buffer Objects id (7 types of vertex data)
|
||||
} Mesh;
|
||||
|
||||
// Shader and material limits
|
||||
#define MAX_SHADER_LOCATIONS 32
|
||||
#define MAX_MATERIAL_TEXTURE_MAPS 12
|
||||
#define MAX_MATERIAL_PARAMS 8
|
||||
|
||||
// Shader type (generic)
|
||||
typedef struct Shader {
|
||||
unsigned int id; // Shader program id
|
||||
|
|
|
|||
Loading…
Reference in a new issue