tropher
@tropher
tropher
@tropher
Basic User
Joined September 30, 2023
Last Active 1007 days ago
- 关于 2.2 软光栅化渲染器为什么会缺少高光?计算机图形学 specular 就是按照 pdf 版实验文档上给出的公式写的。 Vector3f specular = ks.cwiseProduct(attenuated_light) * std::pow(std::max(0.0f, normal.dot(half_vec)), material.shininess); 我在计算 half_vec 时,lightDirection 和 viewDirection 都是先做了归一化后,再相加,然后…4285