face3d icon indicating copy to clipboard operation
face3d copied to clipboard

a bug in render_texture with a fix method

Open IQ17 opened this issue 5 years ago • 0 comments

For those who may use the mesh. render_texture (cython) function, please note there is a bug

error code

error is that it should use tex_tri_p0_ind rather than tri_p0_ind tex_p0.x = tex_coords[3*tex_tri_p0_ind]; tex_p0.y = tex_coords[3*tri_p0_ind + 1]; tex_p1.x = tex_coords[3*tex_tri_p1_ind]; tex_p1.y = tex_coords[3*tri_p1_ind + 1]; tex_p2.x = tex_coords[3*tex_tri_p2_ind]; tex_p2.y = tex_coords[3*tri_p2_ind + 1];

IQ17 avatar Apr 09 '21 05:04 IQ17