柿闲

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: 作业3踩坑分享 #22572 Score: 0
    柿闲
    Participant

    在测试phong光照模型时出现只有黑白两色这种错误。错误原因集中在phong模型计算过程里面。我主要是没注意乘除法的计算顺序,就是光照模型中的l/(r*r)一项,其中r平方没加括号导致计算错误,从而导致了图片中的效果。

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)