Skip to content

Rendering triangle in 3d with texture? #1612

Answered by raysan5
HoutarouOreki asked this question in Q&A
Discussion options

You must be logged in to vote

@HoutarouOreki raylib does not provide any direct function to map a texture into a triangle. To accomplish that you should use rlgl directly to define vertex position and texture coordinates assigned to every vertex. You can check shapes.c->DrawTriangle() for reference.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KacperKotlewski
Comment options

Answer selected by HoutarouOreki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants