Arithmetic(アリィスマァティック/数値/数学)にあるNodeについてちょっと解説します。
| Node名 | 効果 |
|---|---|
| Abs | Aの絶対値を出力する |
| Add | AとBを足して出力する |
| Blend | フラグメントにある元の色と新しい色とをどう合成するかの指定できるらしい |
| Ceil | 少数点を切り上げる |
| Clamp | 入力された値が指定した最小値と最大値の間になるよう加工する |
| Clamp 0-1 | 入力された値が0~1の間になるよう加工する |
| Clamp(Simple) | Clampが簡単に使えるNode |
| Divide | 割り算をA/Bで計算 |
| Exp | e=2.71828...(自然対数の底、Napierの数)のときのeのA乗を出力する |
| Floor | 少数点を切り捨てる。床に叩きつける感じ |
| Fmod | 浮動小数点除算の余りを求めます。例えば、5.0÷2.0の場合は1.0が返ります。とのこと |
| Frac | 入力値の少数部分のみを出力する |
| HSV to RGB | HSVをRGBに変換して出力 |
| Hue | 色の色合いコンポーネントの値を返します。とのこと |
| If | 条件によって出力する値を変えることができる |
| Inverse Lerp | Lerpの逆数が出力される。とのこと |
| Lerp | AとBを補完してくれる |
| Lerp(Simple) | Lerpが簡単に使えるNode |
| Log | 対数を求める |
| Max | いくつかの入力の内、最大値を出力する |
| Min | いくつかの入力の内、最小値を出力する |
| Multiply | 入力値を掛け算して出力 |
| Multiply Matrix | 行列用の掛け算をする |
| Negate | 引数に対して算術否定演算をする?とのこと。よくわからん |
| Noise | 入力値にノイズを混ぜて出力する??。よくわからん |
| One Minus | 入力値に-1を掛けて出力 |
| Posterize | 画像を入力値で分割する? |
| Power | Outputs the power [Val] ^ [Exp]とのこと |
| Reciprocal | Outputs the quotient 1 / inputとのこと |
| Remap | Remaps a value from one range to another. Same as Remap (Simple), but with inputs instead of numerical constantsとのこと |
| Remap(Simple) | Remapを簡単に使えるようにしたNode |
| RGB to HSV | RGBをHSVに変換して出力 |
| Round | Outputs its input rounded to the nearest integer |
| Sign | Outputs the sign of its input. |
| Smoothstep | Blends smoothly between two values, based on where a third value is in that range, outputting values between 0 and 1. Think of it as a clamped inverse lerp with a smoothed output value. |
| Sqrt | Outputs the square root of its input |
| Step(A <= B) | Outputs 1 if [A] is less than or equal to [B], otherwise outputs 0 |
| Subtract | Outputs the difference [A] - [B] |
| Trunc | Outputs its input rounded to the nearest integer towards zero. Essentially; it removes the decimals, leaving an integer |
まとめてるときにイロイロ調べてたらShader Forge本家がちゃんとまとめてたorz
http://acegikmo.com/shaderforge/nodes/