Finding the color of a point that intersections a polygon with colors
I asked a simular question like this about a month ago when I was using lightmaps, but now that the lighting in my game got bumped down to vertex lighting, I have to find a new solution to my lighting problem, so here it is:
Lets say I have a triangle, and every vertex of that triangle has a color applied to it, if I know an intersection point of that triangle, How would I find the color of the intersection point?
Thanks a bunch
I assume you want a smooth gradient of colour throughout the triangle.
Google "barycentric coordinates".
Google "barycentric coordinates".
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement