Author Topic: NGUI Mask Shader with/without clipped panels  (Read 5270 times)

N3uRo

  • Guest
NGUI Mask Shader with/without clipped panels
« on: September 04, 2014, 11:11:09 AM »
Hi,

I have found this post by Nicki (that it's a user in this forum):

http://nickithansen.dk/masking-and-clipping-textures-using-shaders-in-ngui/

But with the latest version 3.7.1 I can't get that to work. In the material preview I see my texture masked but not in the scene with the UITexture.

What I have done is take an UITexture with a custom material that has that shader. I does weird things.

I also want to used it with clipped panels if I can.

Thanks!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI Mask Shader with/without clipped panels
« Reply #1 on: September 05, 2014, 02:57:33 AM »
The reason is that how the clipping is done has changed, and I haven't looked into updating this shader. I'll see if I can find time for it this weekend, or you can take a look at how TranparentColored, TranparentColored1/2/3 does its thing and modify that shader.

N3uRo

  • Guest
Re: NGUI Mask Shader with/without clipped panels
« Reply #2 on: September 05, 2014, 10:39:09 AM »
The reason is that how the clipping is done has changed, and I haven't looked into updating this shader. I'll see if I can find time for it this weekend, or you can take a look at how TranparentColored, TranparentColored1/2/3 does its thing and modify that shader.

Ok, I'll wait.

Thank you!