1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00

Fix shader compile error for objects without diffuse map

This commit is contained in:
scrawl 2016-08-09 01:02:57 +02:00
parent 5190275b37
commit f291aabc4b

View File

@ -59,7 +59,9 @@ varying vec3 passNormal;
void main()
{
#if @diffuseMap
vec2 adjustedDiffuseUV = diffuseMapUV;
#endif
#if @normalMap
vec4 normalTex = texture2D(normalMap, normalMapUV);