Home › Forums › Games202-高质量实时渲染 › [作业1] 地板边缘渐变灰色解决方法 Tagged: tps This topic has 1 reply, 2 voices, and was last updated 3 years, 7 months ago by chang. Viewing 1 reply thread Author Posts 2021年4月6日 at 上午8:08 #8049 Score: 2 DanParticipant Karma: 2 pts 在 shadowmap 中,没有被记录深度的纹素 unpack 之后得到的值是 0,因此在地板边缘处进行 shadowmap 的随机采样时,会采样到深度为 0 的纹素,这些会被当作遮挡来处理。为解决这个问题,只需手动将 unpack 出来深度为 0 的值设置成 1: if (abs(depth) < EPS) depth = 1.0; 即可。 This post has received 2 votes up. Attachments:You must be logged in to view attached files. 2021年4月11日 at 下午1:22 #8121 Score: 1 changParticipant Karma: 2 pts 还有一种解决办法,可以在画深度图之前将深度图clear成全1 This post has received 1 vote up. Author Posts Viewing 1 reply thread You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In