Multiple color for face

Started by geakstr, February 11, 2015, 13:09:30

Previous topic - Next topic

geakstr

Hello! It's possible to draw two faces (which compose side of box) with different colors?

Demonstration picture: https://www.dropbox.com/s/nfvdo1j0xm2lmu4/604129047_6500_2128067193690835935.jpg?dl=0

Cornix

Use a texture or instead create the box from several triangles each colored individually.

geakstr

I think, I can't doing this. I'm trying to implement picking objects by colors in voxel world. But I merge many cubes in one box when it's possible. And when I get current pixel color this is color of box, but not cube. I search the way for drawing box with multiple color. I think... May be a generate texture for each box?