Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 【作业3】在view space进行插值,结果会与文档中不一致 Reply To: 【作业3】在view space进行插值,结果会与文档中不一致

#4332 Score: 0
Angus
Participant
23 pts

突然发现这不是插值的问题,是因为我bump mapping的最后一步跟框架中不一样,框架中是:

result_color = normal;

而我把normal的值像normal shader一样进行了归一化:

result_color = (normal.normalized() + Eigen::Vector3f(1.0f, 1.0f, 1.0f)) / 2.f;

  • This reply was modified 4 years, 10 months ago by Angus.