PacktPublishing / OpenGL-4-Shading-Language-Cookbook-Third-Edition

OpenGL 4 Shading Language Cookbook - Third Edition, published by Packt
MIT License
312 stars 72 forks source link

Wrong process for normal vector? #10

Open aorandexiaohai opened 1 year ago

aorandexiaohai commented 1 year ago

suppose that M = view * model

Now, the normal matrix is N = glm::mat3(M).

But, actually, it should be the inverse transpose matrix of N.