Home Forums Games202-高质量实时渲染 [作业4]Emu_MC.cpp中的squareToCosineHemisphere代码问题

  • This topic has 1 reply, 2 voices, and was last updated 2 years ago by lav.
Viewing 1 reply thread
  • Author
    Posts
    • #10219 Score: 0
      闪电的蓝熊猫
      Participant

      代码实现中有这么一行:
      double phi = 2 * M_PI * sampley;
      但是编译的时候无法找到M_PI的定义,请问这个M_PI是怎么来的?
      我的编译环境是Win10+VS2019

    • #11311 Score: 0
      lav
      Participant
      -1 pt

      这里很明显是要把M_PI换成PI

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