我的环境光映射球谐函数的代码如下
auto delta_wi = CalcArea(x, y, width, height);
for (int l = 0; l <= SHOrder; l++) {
for (int m = -l; m <= l; m++) {
int k = sh::GetIndex(l, m);
double SH = sh::EvalSH(l, m, dir.cast<double>().normalized());
SHCoeffiecents[k] += Le * delta_wi * SH;
}
}
然后debug的图感觉很白,没有颜色的感觉。
请问是哪里有问题吗?
Attachments:
You must be
logged in to view attached files.