Unity实现刮奖效果
本文实例为大家分享了Unity实现刮奖效果的具体代码,供大家参考,具体内容如下 需要一个Shader和一个CS脚本: // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' Shader Custom/Transparent Colored Eraser { Properties { _MainTex (Base (RGB), Alpha (A), 2D) = white {} _RendTex (Base (RGB), Alpha (A), 2D) = whit