Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The first triangle is still in 3d space but the z coordinates are set to 0


Or you can just not define a z coordinate in the vertex buffer object (at least, in opengl). I think the vertex shader might still need to output a 3rd coordinate. But you can always just discard it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: