Hi,

I've made a map creator for cs 1.6 and now i pass it to 3D with WEBGL, and i've a lot of problem with the transparency...

The function :

Code :
gl.enable(gl.GL_ALPHA_TEST);
gl.glAlphaFunc(gl.GREATER, 0.1);

Is not supported so i've bug with my texture ...

Please, how to resolve it ? i don't want to sort all my block for show :

1 - all the block without transparency
2 - transparency block from farest to closest

Boring to code and i'm sure that it will be slowest :/

if you want to see the map creator (with this bug for now) :
http://www.worldcraft-online.com/worldcraft4.php?l=fr