Author Topic: How to make rounding corners..or rounding mask texture  (Read 933 times)

mchello

  • Guest
How to make rounding corners..or rounding mask texture
« on: November 28, 2012, 08:12:50 PM »


origin : http://www.searchenginegenie.com/web-design-blog/wp-content/uploads/2012/11/8.jpg

mask: http://www.searchenginegenie.com/web-design-blog/wp-content/uploads/2012/11/10.jpg


i searched this solution 4days..T^T but can't search solution


i want round mask effect like flash..

i try 2d panel clippiing option. but this make corner..

please help me..

i will use that minimap effect



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to make rounding corners..or rounding mask texture
« Reply #1 on: November 29, 2012, 07:48:18 AM »
You need a to use a mask shader. It's the same as anything else that you'd mask in Unity. I suggest searching for a Unity solution instead of an NGUI solution, as they are one and the same.

mchello

  • Guest
Re: How to make rounding corners..or rounding mask texture
« Reply #2 on: November 29, 2012, 10:36:52 AM »
you mean ngui can't mask ?? i search google and find maskShader but ngui sprite don't material.. how to use ngui sprite use mask shader material??

mchello

  • Guest
Re: How to make rounding corners..or rounding mask texture
« Reply #3 on: November 29, 2012, 11:22:36 AM »
i use cut out shader this effect... very thank you ..T^T

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to make rounding corners..or rounding mask texture
« Reply #4 on: November 29, 2012, 02:04:13 PM »
NGUI's "material" is specified on the atlas.