OpenGL2: Change normal/tangent vertex encoding.
This commit is contained in:
parent
7e808f92d6
commit
e488663e31
8 changed files with 108 additions and 56 deletions
|
@ -74,7 +74,7 @@ vec3 DeformPosition(const vec3 pos, const vec3 normal, const vec2 st)
|
|||
void main()
|
||||
{
|
||||
vec3 position = attr_Position;
|
||||
vec3 normal = attr_Normal * 2.0 - vec3(1.0);
|
||||
vec3 normal = attr_Normal;
|
||||
|
||||
#if defined(USE_DEFORM_VERTEXES)
|
||||
position = DeformPosition(position, normal, attr_TexCoord0.st);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue