git-svn-id: svn://db.shs.com.ru/libs@672 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -9,9 +9,8 @@ void main(void) {
|
||||
qgl_FragTexture = qgl_Texture;
|
||||
gl_Position = qgl_ftransform();
|
||||
|
||||
mat3 nmat = qgl_getNormalMatrix();
|
||||
geom_normal = normalize(nmat * qgl_Normal);
|
||||
TBN = nmat * mat3(qgl_Tangent, qgl_Bitangent, qgl_Normal);
|
||||
geom_normal = normalize(qgl_Normal * qgl_getNormalMatrix());
|
||||
TBN = qgl_getTangentMatrix() * mat3(qgl_Tangent, qgl_Bitangent, qgl_Normal);
|
||||
object_color = qgl_ObjectColor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user