Hi guys, i am trying to write my own algorithm for environmental mapping. My approach is use a 6 faces cube map as the environment, map the vertex of the polygon to the cube map, and then interpolate the texture position across the polygon during rasterization. My questions is how to deal with the situation where the vertices from a polygon were mapped in different faces of the cube map? Should I split the polygon to make sure all the vertices mapped in a single face or use some clever algorithm to cope with interpolation between 2 vertices that are mapped to different faces of the cube map?
Thanks in advance!
Pan