Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - onerain88

Pages: [1]
1
NGUI 3 Support / Re: Can UIAtlas's material take multiple textures?
« on: June 16, 2016, 05:25:38 AM »
I print the "_AlphaTex", it's wrong, why?

2
NGUI 3 Support / Re: Can UIAtlas's material take multiple textures?
« on: June 16, 2016, 04:35:45 AM »
When I use Frame Debug Tool, I found the _MainTex and _AlphaTex are the same texture resource. But the material is different texture resources.
I grap the image.

3
NGUI 3 Support / Re: Can UIAtlas's material take multiple textures?
« on: June 16, 2016, 04:25:50 AM »
Thank you for your reply.
I found UIDrawCall.Create(this, mat, tex, sdr),there is only one texture, but I need two texture (one for MainTexture, another for AlphaTexture).
Should I need modify the API?

4
NGUI 3 Support / Can UIAtlas's material take multiple textures?
« on: June 15, 2016, 05:59:46 AM »
In android platform, etc1 is avaliable compress format, but etc1 has no alpha channel.
I wanna use a etc1 rgb texture for maintexture, and a etc1 alpha texture for "AlphaTexture".
I write a shader like Transport Colored.shader, there are two textures(MainTexture and AlphaTexture), but when I run, I found that it does not work. Shader's properties MainTexture and AlphaTexture are same, they are MainTexture's texture.
How should I do?

Pages: [1]