2008. 10. 15. 11:40

HLSL saturate function

can someone explain what saturate (x) function exactly do?

if x < 0 then result will be 0
if x > 1 then result will be 1
Otherwise, result will be the same as X

아놔 그간 DX 도큐먼트에
Clamps x to the range 0,1
되있어서 와.. 이거 어떤 방식으로 줄이지 라고 졸라 생각했었는데
이런거였어...