diff --git a/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.frag b/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.frag index c06cca739..c4d3bdfb0 100644 --- a/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.frag +++ b/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.frag @@ -648,7 +648,7 @@ void main(){ //--------------------- // normal calculations //--------------------- - #if defined(NORMALMAP) || defined(NORMALMAP_1) || defined(NORMALMAP_2) || defined(NORMALMAP_3) + #if defined(NORMALMAP) || defined(NORMALMAP_1) || defined(NORMALMAP_2) || defined(NORMALMAP_3) || defined(NORMALMAP_4) || defined(NORMALMAP_5) || defined(NORMALMAP_6) || defined(NORMALMAP_7) || defined(NORMALMAP_8) || defined(NORMALMAP_9) || defined(NORMALMAP_10) || defined(NORMALMAP_11) #ifdef TRI_PLANAR_MAPPING vec3 normal = calculateNormalTriPlanar(wNormal, wVertex, texCoord); #else diff --git a/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.vert b/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.vert index eded0ee13..b73e7e210 100644 --- a/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.vert +++ b/engine/src/terrain/Common/MatDefs/Terrain/TerrainLighting.vert @@ -61,7 +61,7 @@ void main(){ //-------------------------- // specific to normal maps: //-------------------------- - #if defined(NORMALMAP) || defined(NORMALMAP_1) || defined(NORMALMAP_2) || defined(NORMALMAP_3) + #if defined(NORMALMAP) || defined(NORMALMAP_1) || defined(NORMALMAP_2) || defined(NORMALMAP_3) || defined(NORMALMAP_4) || defined(NORMALMAP_5) || defined(NORMALMAP_6) || defined(NORMALMAP_7) || defined(NORMALMAP_8) || defined(NORMALMAP_9) || defined(NORMALMAP_10) || defined(NORMALMAP_11) vec3 wvTangent = normalize(g_NormalMatrix * inTangent.xyz); vec3 wvBinormal = cross(wvNormal, wvTangent);