Home Forums Games202-高质量实时渲染 [作业2]预计算结果中是否应该包含diffuse项

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #8271 Score: 0
      zkf
      Participant

      在预计算的结果中是否需要包含diffuse brdf对应的rho/pi,如果需要应该包含在哪一部分?

    • #8273 Score: 0
      cmc233
      Participant
      6 pts

      prt.cpp的preprocess()已经写了
      auto shCoeff = sh::ProjectFunction(SHOrder, shFunc, m_SampleCount);
      for (int j = 0; j < shCoeff->size(); j++)
      {
      m_TransportSHCoeffs.col(i).coeffRef(j) = (*shCoeff)[j];
      }

      • #8274 Score: 0
        cmc233
        Participant
        6 pts

        不好意思,把 = (*shCoeff)[j]看成*= (shCoeff)[j]了,源代码好像是没乘系数orz

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