texture with alpha layer in GL scene

    Mar 02 2009 | 4:23 pm
    i'm struggling to get the alpha layer of png files i'm using as textures to work as expected... it's probably something quite simple that i keep on missing, but at the moment it seems like it's not drawing correctly.
    there are 2 possible causes i can think of at the moment:
    1. wrong blend mode applied to objects / texture
    2. something to do with draw order, which i'm not sure how to tackle when using jit.gl.multiple... (draw raw?)
    any insights would be greatly appreciated, i have attached the patch in zip format, with demo png file for texture.

    • Mar 02 2009 | 9:29 pm
      i think what you want is blend_mode 6 7 and depth_enable 0
    • Mar 03 2009 | 12:22 am
      thanks! i was going round in circles... < pun intended // sadly >