OpenGL2: Calculate bitangent in shader, and store normal/tangent as normalized byte arrays.
This commit is contained in:
parent
a53e7c3074
commit
6e5f8cc918
15 changed files with 268 additions and 271 deletions
|
@ -247,8 +247,7 @@ static void MakeMeshTangentVectors(int width, int height, srfVert_t ctrl[MAX_GRI
|
|||
dv[0] = &ctrl2[j * width + i];
|
||||
dv[1] = &ctrl[j][i];
|
||||
|
||||
VectorCopy(dv[0]->tangent, dv[1]->tangent);
|
||||
VectorCopy(dv[0]->bitangent, dv[1]->bitangent);
|
||||
VectorCopy4(dv[0]->tangent, dv[1]->tangent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue