|
|
@ -61,7 +61,7 @@ void main(){ |
|
|
|
//-------------------------- |
|
|
|
//-------------------------- |
|
|
|
// specific to normal maps: |
|
|
|
// 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 wvTangent = normalize(g_NormalMatrix * inTangent.xyz); |
|
|
|
vec3 wvBinormal = cross(wvNormal, wvTangent); |
|
|
|
vec3 wvBinormal = cross(wvNormal, wvTangent); |
|
|
|
|
|
|
|
|
|
|
|