Updated PhongLighting shader
I can't remember why I commented these lines. Former-commit-id: 3da37915073f94c9c44adfd84c968cb2d70982cf
This commit is contained in:
parent
8b34e21e2f
commit
bd0f38092e
|
|
@ -61,9 +61,9 @@ void main()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TEXTURE_MAPPING
|
#if TEXTURE_MAPPING
|
||||||
/* #if FLAG_FLIP_UVS
|
#if FLAG_FLIP_UVS
|
||||||
vTexCoord = vec2(VertexTexCoord.x, 1.0 - VertexTexCoord.y);
|
vTexCoord = vec2(VertexTexCoord.x, 1.0 - VertexTexCoord.y);
|
||||||
#else*/
|
#else
|
||||||
vTexCoord = VertexTexCoord;
|
vTexCoord = VertexTexCoord;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -44,7 +44,7 @@ void main()
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#if LIGHTING
|
#if LIGHTING
|
||||||
#if FLAG_INSTANCING
|
#if FLAG_INSTANCING
|
||||||
mat3 rotationMatrix = mat3(InstanceData0);
|
mat3 rotationMatrix = mat3(InstanceData0);
|
||||||
#else
|
#else
|
||||||
|
|
@ -59,14 +59,14 @@ void main()
|
||||||
#else
|
#else
|
||||||
vNormal = normalize(rotationMatrix * VertexNormal);
|
vNormal = normalize(rotationMatrix * VertexNormal);
|
||||||
#endif
|
#endif
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
#if TEXTURE_MAPPING
|
#if TEXTURE_MAPPING
|
||||||
/* #if FLAG_FLIP_UVS
|
#if FLAG_FLIP_UVS
|
||||||
vTexCoord = vec2(VertexTexCoord.x, 1.0 - VertexTexCoord.y);
|
vTexCoord = vec2(VertexTexCoord.x, 1.0 - VertexTexCoord.y);
|
||||||
#else*/
|
#else
|
||||||
vTexCoord = VertexTexCoord;
|
vTexCoord = VertexTexCoord;
|
||||||
// #endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LIGHTING && PARALLAX_MAPPING
|
#if LIGHTING && PARALLAX_MAPPING
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue