aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-05-25 16:19:57 +0200
committerraysan5 <raysan5@gmail.com>2016-05-25 16:19:57 +0200
commitd53b6f4381485785f7ece3c8004449c20b60ae03 (patch)
treef754c8d81609d0b87ad636a7e6892a7a4653c1ad /src/rlgl.h
parent48374c85dd9d05bcc86a277f64db018323ac5183 (diff)
downloadraylib-d53b6f4381485785f7ece3c8004449c20b60ae03.tar.gz
raylib-d53b6f4381485785f7ece3c8004449c20b60ae03.zip
Renamed shader variables (more generic names)
Now shader maps use a generic naming convention for any kind of texture maps (not only diffuse, normal or specular). Useful for custom shaders.
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 0765a8a7..fa35dbc6 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -171,10 +171,10 @@ typedef enum { OPENGL_11 = 1, OPENGL_33, OPENGL_ES_20 } GlVersion;
int mvpLoc; // ModelView-Projection matrix uniform location point (vertex shader)
int tintColorLoc; // Color uniform location point (fragment shader)
- // Texture map locations
- int mapDiffuseLoc; // Diffuse map texture uniform location point (fragment shader)
- int mapNormalLoc; // Normal map texture uniform location point (fragment shader)
- int mapSpecularLoc; // Specular map texture uniform location point (fragment shader)
+ // Texture map locations (generic for any kind of map)
+ int mapTexture0Loc; // Map texture uniform location point (default-texture-unit = 0)
+ int mapTexture1Loc; // Map texture uniform location point (default-texture-unit = 1)
+ int mapTexture2Loc; // Map texture uniform location point (default-texture-unit = 2)
} Shader;
// Texture2D type