Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 【作业3】在view space进行插值,结果会与文档中不一致 › Reply To: 【作业3】在view space进行插值,结果会与文档中不一致
欸?
result_color = (normal.normalized() + Eigen::Vector3f(1.0f, 1.0f, 1.0f)) / 2.f;
result_color = result_color * 255.0f;
[-1, 1] + 1 = [0, 2]
[0, 2] / 2 = [0, 1]
[0, 1] * 255 = [0, 255]
不是这样吗