forked from teamnwah/openmw-tes3coop
Fix shader compile error for objects without diffuse map
This commit is contained in:
parent
5190275b37
commit
f291aabc4b
1 changed files with 2 additions and 0 deletions
|
@ -59,7 +59,9 @@ varying vec3 passNormal;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
#if @diffuseMap
|
||||||
vec2 adjustedDiffuseUV = diffuseMapUV;
|
vec2 adjustedDiffuseUV = diffuseMapUV;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if @normalMap
|
#if @normalMap
|
||||||
vec4 normalTex = texture2D(normalMap, normalMapUV);
|
vec4 normalTex = texture2D(normalMap, normalMapUV);
|
||||||
|
|
Loading…
Reference in a new issue