Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Anadin on July 10, 2012, 02:38:10 AM

Title: Clipping without fixed function shader
Post by: Anadin on July 10, 2012, 02:38:10 AM
I need a non-fixed function shader but only seem to get the right results in my UI if I use the Transparent Colored shader (which is fixed function).

Is it possible to get/make this shader not fixed function?

If I try and use Alpha clip or Soft clip I get large grey areas on some of my sprites :(
Title: Re: Clipping without fixed function shader
Post by: ArenMook on July 10, 2012, 06:19:33 AM
"non fixed function" implies an actual shader, so that makes no sense.

"Unlit/Transparent Colored" shader has clipping versions of it -- "Unlit/Transparent Colored (SoftClip)" for example. If you want to use another shader that has clipping, you need to write the clipped versions of that shader with the same naming syntax.