kimsama / Unity-NGUIExtension

Various NGUI extension modules.
MIT License
49 stars 16 forks source link

Does not working with Clipping #1

Open AvinashP opened 9 years ago

AvinashP commented 9 years ago

NGUI panel supports soft clip. When we use any atlas with Transparent Coloured Mask and UIPanel with clipping, Unity throws any exception

Unlit / Transparent Colored AlphaMasked does not have a clipped shader version for SoftClip

kimsama commented 9 years ago

Hey,

Could you tell me more details?

The 'Transparent Colored Masked 1.shader' file is for clipping so you should set that shader not a Transparent Colored Masked.shader file.

See the code of Transparent Colored Masked 1.shader file, you can find code works for clipping.

Cheers,

-Kim