75

ShaderLab学习小结(六)接收点光源阴影-树下野兽-51CTO博客

 6 years ago
source link: http://blog.51cto.com/shuxiayeshou/2065532
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在“ShaderLab学习小结(五)接收平行光阴影”中,通过修改代码,让原来的shader可以接收主平行光的阴影。但是没有点光源的阴影。在原有的pass通道下面再添加一个pass通道,用于接收点光源阴影。直接将原来的pass复制粘贴成新的pass通道,再进行一些修改即可。pass{tags{"lightmode"="forwardadd"}//1.blendoneone//2.CGPROGRAM#

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK