You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, before submitting a new issue verify and check:
I tested it on latest raylib version from master branch
I checked there is no similar issue already reported
My code has no errors or misuse of raylib
Issue description
In rmodels.c, the DrawMesh function tries to upload the material's specular color, if the shader has a uniform in shader.locs[SHADER_LOC_COLOR_SPECULAR]. The problem is that the material map should be material.maps[MATERIAL_MAP_SPECULAR], but maps[SHADER_LOC_COLOR_SPECULAR] is used instead, which isn't a real material map.
Please, before submitting a new issue verify and check:
Issue description
In
rmodels.c
, theDrawMesh
function tries to upload the material's specular color, if the shader has a uniform inshader.locs[SHADER_LOC_COLOR_SPECULAR]
. The problem is that the material map should bematerial.maps[MATERIAL_MAP_SPECULAR]
, butmaps[SHADER_LOC_COLOR_SPECULAR]
is used instead, which isn't a real material map.See the source code in question here:
raylib/src/rmodels.c
Lines 1373 to 1383 in 589892a
Environment
Linux, OpenGL 3.3. The code in question is within
Issue Screenshot
I got random specular colors every time I ran my program, but didn't take screenshots
Code Example
The text was updated successfully, but these errors were encountered: