Author Topic: Two questions regarding TextureInfo  (Read 2768 times)

Offline nlotz

  • byte
  • *
  • Posts: 7
    • View Profile
Two questions regarding TextureInfo
« on: October 07, 2010, 09:38:56 pm »
Is there a way to set the glBlendFunc when using blending with TextureInfo? Something like:

texInfo.addWithBlendFunc(texId, GL11.GL_SRC_ALPHA, GL11.GL_ONE);

Also I'd like to know if there is a way to modify the texture coordinates of a mesh for each stage of multi texture rendering.

Thanks in advance and a huge thanks for jPCT!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Two questions regarding TextureInfo
« Reply #1 on: October 07, 2010, 09:57:47 pm »
No, there's no way to set it directly and yes, you can modify it. Have a look at the PolygonManager.

Offline nlotz

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Two questions regarding TextureInfo
« Reply #2 on: October 07, 2010, 10:04:47 pm »
That was fast, thanks. I really need to look at how transparency and blending work in jPCT...