Home › Forums › Games202-高质量实时渲染 › vPositionFromLight.z 恒为 0 This topic has 3 replies, 2 voices, and was last updated 3 years, 6 months ago by 青麈. Viewing 3 reply threads Author Posts 2021年4月9日 at 下午9:37 #8094 Score: 0 wangshengyangParticipant Karma: -2 pt 实现硬阴影失败,完全没有阴影。发现 vPositionFromLight.z 恒为0,因为把它当作 gl_FragColor 的 r 通道输出,屏幕是黑的。 不知道怎么回事。 附上我的mvp矩阵 Attachments:You must be logged in to view attached files. 2021年4月9日 at 下午10:46 #8096 Score: 0 wangshengyangParticipant Karma: -2 pt 发现不是0,是负值 2021年4月10日 at 上午10:34 #8099 Score: 0 wangshengyangParticipant Karma: -2 pt 原因:z坐标忘了转到0到1 2021年4月10日 at 下午1:11 #8103 Score: -1 青麈Participant Karma: -2 pt let left = -100 let right = 100 let bottom = -60 let top = 100 let near = -420 let far = -40 正交矩阵的参数,仅供参考。 调了半天、、、 This post has received 1 vote down. Author Posts Viewing 3 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In