SPLighting.frag: fix syntax error with vertex lighting enabled
This commit is contained in:
parent
0c846eaf6a
commit
1fec72605f
@ -72,7 +72,8 @@ uniform float m_Shininess;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void main(){
|
void main(){
|
||||||
#ifdef NORMALMAP
|
#if !defined(VERTEX_LIGHTING)
|
||||||
|
#if defined(NORMALMAP)
|
||||||
mat3 tbnMat = mat3(normalize(vTangent.xyz) , normalize(vBinormal.xyz) , normalize(vNormal.xyz));
|
mat3 tbnMat = mat3(normalize(vTangent.xyz) , normalize(vBinormal.xyz) , normalize(vNormal.xyz));
|
||||||
|
|
||||||
if (!gl_FrontFacing)
|
if (!gl_FrontFacing)
|
||||||
@ -84,6 +85,7 @@ void main(){
|
|||||||
#else
|
#else
|
||||||
vec3 viewDir = normalize(-vPos.xyz);
|
vec3 viewDir = normalize(-vPos.xyz);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
vec2 newTexCoord;
|
vec2 newTexCoord;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user