首页 > 其他 > 详细

selfshadow

时间:2017-04-07 16:38:11      阅读:238      评论:0      收藏:0      [点我收藏+]

realtime rendering v3 page 351

Moire pattern

sruface acne

artifacts

 

-----------------------

用 setstate

dx

depthslopescalebias

depthbias

gl

setPolygonOffset(depthslopescalebias,depthbias,clamp)

 

depthslopescalebias 

depthbias经验值,。。。。。wip

 

/// The offset is computed by multiplying the maximum depth slope of
/// the primitive [sqrt((dz/dx)^2 + (dz/dy)^2)] by _factor_, adding in
/// the minimum resolvable difference in depth values multiplied by
/// _units_, and clamping the result as described in the documentation
/// for _clamp_.

/// \param factor Value multiplied by the maximum depth slope when
/// computing offset.
///
/// \param units Value multiplied by the minimum resolvable depth
/// difference when computing offset.
///
/// \param clamp Value used to clamp the computed offset.
/// If `clamp` is positive, the computed depth offset will be clamped
/// to a value less than or equal to `clamp`. If `clamp` is negative,
/// the computed depth offset will be clamped to a value greater than
/// or equal to `clamp`. If `clamp` is zero, the computed depth offset
/// will not be clamped.

void SetPolygonOffsetClamp(float factor,
float units,
float clamp);

selfshadow

原文:http://www.cnblogs.com/minggoddess/p/6678712.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!