UnityCG.cginc有一个叫ShadeVertexLightsFull的函数可以用来计算顶点光照. 源码如下: // Used in Vertex pass: Calculates diffuse lighting from lightCount lights. Specifying true to spotLight is more expensive // to calculate but lights are treated as spot lights otherwise they…
[Vertex Lit] Vertex Lit path generally renders each object in one pass, with lighting from all lights calculated at object vertices. It's the fastest rendering path and has widest hardware support (however, keep in mind: it does not work on consoles)…