Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a bug in render_texture with a fix method #81

Open
IQ17 opened this issue Apr 9, 2021 · 0 comments
Open

a bug in render_texture with a fix method #81

IQ17 opened this issue Apr 9, 2021 · 0 comments

Comments

@IQ17
Copy link

IQ17 commented Apr 9, 2021

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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant