请问rasterizer.cpp的207-212这一段是啥意思呢,
Eigen::Matrix4f inv_trans = (view * model).inverse().transpose();
Eigen::Vector4f n[] = {
inv_trans * to_vec4(t->normal[0], 0.0f),
inv_trans * to_vec4(t->normal[1], 0.0f),
inv_trans * to_vec4(t->normal[2], 0.0f)
};
为什么要给norm乘以inv_trans 呢?
This post has received 2 votes up.