float interpolate(float val, float sx, float sy)
vector interpolate(vector val, float sx, float sy)
vector4 interpolate(vector4 val, float sx, float sy)
bsdf interpolate(bsdf val, float sx, float sy)
これらのオペレーションを使えば、マイクロポリゴンレンダリングエンジン内でアンチエイリアスポジションを生成することができます。
sxとsyはnextsampleで生成されるような乱数です。
sxとsyの別々の値が、マイクロポリゴン上で別々のランダムな位置に移動します。
戻り値は、レイトレースエンジンでは未定義です。
vector hitP = interpolate(P, sx, sy);
| See also | |
| light |
|
| pbr |
|