Viewing 5 reply threads
  • Author
    Posts
    • #4053 Score: 0
      chihiro
      Participant

      请问有人遇见这种高光位置不对的情况吗?

      Attachments:
      You must be logged in to view attached files.
    • #4065 Score: 1
      戴皓天
      Participant
      9 pts

      光源有两个,所以他们的光照计算结果要叠加,应该是result_color+=ambient+diffuse+specular,而不是用赋值,用赋值的话对第二个光源的计算结果会把第一个的覆盖掉

      This post has received 1 vote up.
      • #4104 Score: 0
        Bear
        Participant
        -11 pt

        +1, 楼主很明显是少了一个结果而不是不对

      • #6437 Score: 0
        dzy
        Participant

        我和楼主结果一样,不是少了一个的问题,少了一个亮度都不一样了,这个亮度是正常的

        • #6574 Score: 0
          Enoch
          Participant
          1 pt

          请问你解决这个问题了吗?我也遇到了这个问题。。。

    • #6571 Score: 0
      鬼酒时雨
      Participant

      计算r的时候应该是ll=eye_pos-point

    • #6575 Score: 1
      Enoch
      Participant
      1 pt

      你的v向量没有做normalize

      This post has received 1 vote up.
    • #12062 Score: 0
      unkvcc
      Participant
      2 pts

      感谢楼上各位的解答,光照的计算结果应该叠加,我这个图片就是没有叠加直接赋值的效果

      Attachments:
      You must be logged in to view attached files.
    • #12115 Score: 0
      callg
      Participant

      我遇到了同样问题,检查后发现是 rasterize_triangle 里面 payload.view_pos 赋值错了

Viewing 5 reply threads
  • You must be logged in to reply to this topic.