4
« on: December 23, 2014, 12:07:31 pm »
Hi,
I'm evaluating the SFML for my current project (2D isometric tile based game). In the engine I'm using now, I'm making the terrain as a flat mesh with textures attached and custom pixel/fragment shader. The terrain is practically the tile map. The terrain mesh is using 2 textures, one is for the actual terrain tiles (grass, mud, sand), another is the alpha texture for the splatting between the different terrain type (grass and mud for instance). Each vertex has defined 3 texture coordinates and I'm using them in the shader.
Looking through the documentation the stuff that is most similar to my terrain mesh is using the sf::Vertex to create the mesh. But sf::Vertex supports only 1 texture coordinate and I need at least 3.
Is there any other options to achieve what I want? Would it be possible to add more texture coordinates for sf::Vertex (and therefor multi-texturing support)?
Thank You
Trigve