UnityShader源码2017---学习笔记与自我拓展029

源自Mobile-VertexLit

这个shader一坨,是很多shader的fallback最终根源

一共4个pass(vertex,vertexLM,vertexLMRGBM,ShadowCaster

vertex是逐顶点光照的时候会执行的一个pass,没有lightmap

vertexLM是逐顶点光照的时候会执行的一个pass,有lightmap,lightmap的encode是被作为了dLDR

vertexLMRGBM是逐顶点光照的时候会执行的一个pass,有lightmap,lightmap的encode是被作为了RGBM

ShadowCaster生成阴影用的,(阴影以后再说吧)

前三个pass都是固定管线,所以就直接pass了吧









猜你喜欢

转载自blog.csdn.net/u012871784/article/details/81035986
今日推荐