How to generate normal coordinate?
I'm developping an game using th开发者_开发百科e API opengl es 2.0. I need to know how to generate the normal coordinate because i need them to developp the lighting. I'm wondering if there is a software or an algorithm that generate normal coordinate. Great thanks!
Normals are not coordinates but vectors. The normal of a plane is the cross product of two vectors that lie on that plane.
Given three coordinates (say a,b,c) on a plane, you can calculate the normal by;
(b - a) X (c - a)
Wiki link : CrossProduct
精彩评论