Opengl, Computer Graphics, Shaders, Texture, Shading.
triangle. Assuming that we know three points that composes of the triangle, we can get two vector of triangle edge by substracting points each other. Then, if we do cross product about two edge vectors in clockwise direction, we can get a vector that are orthogonal to surface of the triangle. With