Home › Forums › Games202-高质量实时渲染 › [作业2]预计算结果中是否应该包含diffuse项 › Reply To: [作业2]预计算结果中是否应该包含diffuse项
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];
}