DeanWang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年6月25日

摘要: 对于Normal而言,因为是归一化后的,所以只需要存储x和y即可,有多种算法可以进行压缩和解压,这里介绍其中一种比较不错的: 对于position的压缩,由于在PS中的像素所在位置已经提供了x和y,可以由x和y计算出z;在GBuffer中可以存储view space中的z除以far plane的值, 阅读全文
posted @ 2017-06-25 20:40 DeanWang 阅读(214) 评论(0) 推荐(0) 编辑

摘要: int ImageAdjust(IplImage* src, IplImage* dst, double low, double high, // X方向:low and high are the intensities of src double bottom, double top, // Y方 阅读全文
posted @ 2017-06-25 19:42 DeanWang 阅读(170) 评论(0) 推荐(0) 编辑