1. Finding a Normal Vector for 3D Graphics
3D Graphics ProgrammerBackground
A developer is writing a custom shader and needs to find the normal vector of a triangle face to calculate lighting correctly.
Problem
Needs a vector perpendicular to two edge vectors of the triangle.
How to use
Input the first edge vector '1, 2, 3' into Vector A and the second edge vector '4, 5, 6' into Vector B, keeping the default 6 decimal places.
Vector A: 1, 2, 3 | Vector B: 4, 5, 6Outcome
The tool outputs [-3, 6, -3], which is the perpendicular normal vector used for the lighting calculation.