OpenGL2: Change normal/tangent vertex encoding.

This commit is contained in:
SmileTheory 2014-10-28 18:15:13 -07:00
parent 7e808f92d6
commit e488663e31
8 changed files with 108 additions and 56 deletions

View file

@ -80,7 +80,6 @@ void main()
{
vec3 position = mix(attr_Position, attr_Position2, u_VertexLerp);
vec3 normal = mix(attr_Normal, attr_Normal2, u_VertexLerp);
normal = normalize(normal - vec3(0.5));
position = DeformPosition(position, normal, attr_TexCoord0.st);