LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: geakstr on February 11, 2015, 13:09:30

Title: Multiple color for face
Post by: geakstr on February 11, 2015, 13:09:30
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
Title: Re: Multiple color for face
Post by: Cornix on February 11, 2015, 13:32:30
Use a texture or instead create the box from several triangles each colored individually.
Title: Re: Multiple color for face
Post by: geakstr on February 11, 2015, 13:50:22
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?