线性插值雾(正确的算法)?
因此,我对雾应用线性插值的粗略想法源于维基百科文章并受到启发:
pixelcolor = (fogcolor - originalpixelcolor) / fogdistance * pixeldistance + originalpixelcolor
不幸的是,该公式不正确。这个公式的修正版本会是什么?
So, my rough idea of linear interpolation applied to fog stems from the Wikipedia article and inspired this:
pixelcolor = (fogcolor - originalpixelcolor) / fogdistance * pixeldistance + originalpixelcolor
Unfortunately, the formula is incorrect. What would a corrected version of this formula be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
线性插值看起来像:
Linear interpolation would look like: