Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业3 Blinn-Phong 反射模型高光有些偏差

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #7276 Score: 0
      木爻
      Participant

      请问是怎么造成的

      • This topic was modified 4 years, 1 month ago by 木爻.
      Attachments:
      You must be logged in to view attached files.
    • #7283 Score: 0
      Gopher
      Participant

      我按着你的代码跑了一下,结果是对的,我猜想可能是你的payload.view_pos不一样。
      auto interpolated_shadingcoords = interpolate(alpha, beta, gamma, view_pos[0], view_pos[1], view_pos[2], 1);
      我在rasterizer.cpp里是这样写的,你的什么样?

      • #7287 Score: 0
        木爻
        Participant

        是的,已经解决了
        实现rasterize_triangle的时候遗漏了interpolated_shadingcoords

Viewing 1 reply thread
  • You must be logged in to reply to this topic.