Can anyone give me some hints about how to debug the issue? Although the issue could be an issue from the model, I would like my app to fail gracefully and hopefully it will show a fallback material.
Program Info Log: Fragment shader is not compiled.
FRAGMENT
ERROR: 0:1384: 'vNormalMapUv' : undeclared identifier
ERROR: 0:1384: 'getTangentFrame' : no matching overloaded function found
ERROR: 0:1384: '=' : dimension mismatch
ERROR: 0:1384: '=' : cannot convert from 'const mediump float' to 'highp 3X3 matrix of float'
1379: #endif
1380: #if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
1381: #ifdef USE_TANGENT
1382: mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
1383: #else
> 1384: mat3 tbn = getTangentFrame( - vViewPosition, normal, vNormalMapUv );
1385: #endif
1386: #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
1387: tbn[0] *= faceDirection;
1388: tbn[1] *= faceDirection;
1389: #endif
1390: #endif