2018.0.3f

里面directional light开了shadow 就会有一张updatedepth

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

如果距离远 没有阴影就没有shadow pass 但是updatedepth没有关掉 管线后面也没有对这张depth tex的引用

如果距离在实时阴影产生范围之内 会用screen space shadow 

updatedepth就是给screen space shadow用的

 

这里有些shit

开shadow的情况下 用camera.DepthTextureMode.NONE 并不能关掉updatedepth

 

screen space shadow 的开关在 graphic setting 里

cascaded shadows 对就是级联。。。关了这里(要选对当前tier)

 

updatedepthTexture 的有无取决于 Camera

            Camera.main.depthTextureMode = DepthTextureMode.Depth

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄