Textured Triangle with backface culling

482
0
2023-09-03に共有
Complete implementation of @squidchips' concept for 3d textured tris.

For making your own textures: https://github.com/KelvinGuy1/Scratch-Texture-Mapper

@squidchip this wasn't built off your code at all but it took quite a few things in account. The thing is, the only way this can look alright is by making 3 textures with each seam taken into account. All textures must have a 1:1 right triangle and be resized to 20x20 to work. Also the textures are nubbed off with this method due to the limitation of stretching.