Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Multiple textures on a mesh

$
0
0

@EdwardLiv wrote:

Hello, sorry for the noob question.
I’m trying to make a terrain mesh with multiple textures (e.g. grass, sand, snow).
I can make a single texture mesh by doing this in draw():

grassTexture.bind();
mesh.draw();
grassTexture.unbind();

Is there a way to choose which texture gets used for some mesh faces?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles