bump用到了displacement是什么意思?
就是说,在根据凹凸贴图UV计算新的法向量后,顶点要实际移动,按照注释多写一行,然后再修改法向量
point = point + kn * n * payload.texture->getColor(u,v).norm();
This post has received 2 votes up.
-
This reply was modified 1 year, 9 months ago by unkvcc.
Attachments:
You must be
logged in to view attached files.