http://www.cppblog.com/lai3d/archive/2008/10/23/64889.html
http://www.cnblogs.com/leave-one-blood/p/CGShader.html
http://www.cnblogs.com/Yellow0-0River/p/4262467.html
函数
https://docs.microsoft.com/zh-cn/windows/desktop/direct3dhlsl/dx-graphics-hlsl-intrinsic-functions
函数 | 简介 | 附加 |
abs() |
取绝对值 |
|
clamp(x,low,high ) |
若X在[low,high]范围内,则等于X;如果X小于low,则返回low;如果X大于high,则返回high。 |
|
ler |