Unity CGShader 2D面片接受3D光照及投射阴影(surface shader) 文章目录 一、在unityDebug面板中开启投射阴影 二、开启 cast Shadows 和勾选Receive Shadows 三、shader部分 一、在unityDebug面板中开启投射阴影 二、开启 cast Shadows 和勾选Receive Shadows 三、shader部分 Shader "Yao/SpriteShadow_Lit" { Properties { _Color ("Color", Color) =