I interpolated the vertices and used the normals as averages and got a center normal.
I used this averaged normal as the final normal to do intersections.
Oh I'm also intersecting a triangle and it works the same way as a sphere/plane/quadric.
You get equation to ray and put it into function of specified plane and solve for alpha.
So what is hard about this?
I used this averaged normal as the final normal to do intersections.
Oh I'm also intersecting a triangle and it works the same way as a sphere/plane/quadric.
You get equation to ray and put it into function of specified plane and solve for alpha.
So what is hard about this?