www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Yerst on July 16, 2013, 07:08:10 pm

Title: Alpha channel on texture does not work
Post by: Yerst on July 16, 2013, 07:08:10 pm
Hey!
I'm trying to load a 100% transparent .png image, but in the game it's black, not transparent.
Here is what i'm using to load the texture:
Code: [Select]
tm.addTexture("earth_clouds", new Texture(this.context.getResources().openRawResource(R.raw.earth_cloudss),true));
Title: Re: Alpha channel on texture does not work
Post by: EgonOlsen on July 16, 2013, 07:09:48 pm
It's only transparent on transparent objects...
Title: Re: Alpha channel on texture does not work
Post by: Yerst on July 16, 2013, 07:22:09 pm
Thx, works fine now!
And sorry for the many questions :)