https://gamedev.stackexchange.com/questions/96051/unity-5-how-to-get-a-shadowmap UNITY_DECLARE_SHADOWMAP(tex) - declares a shadowmap texture variable with name “tex”. UNITY_SAMPLE_SHADOW(tex,uv) - samples shadowmap texture “tex” at given “uv” coordin…
[如何降低Unity程序的Drawcall] Unity can combine a number of objects at runtime and draws them together with a single draw call. This operation is called “batching” 每帧能够有多少batch依赖于cpu.每个drawcall提交多少个三角形,对cpu压力变化不大,但是每帧有多少个drawcall则影响很明显. Currently, only Mesh…