wedge_parameterLinear を選択すると、wedge_index および wedge_index_count のグローバル変数に基づいて入力データが補間されます。
wedge_indexこのノードによって取得されるウェッジ インデックス。
wedge_index_countこのノードによって取得されるウェッジ インデックスの数。
start補間された出力 value の開始点。
end補間された出力 value の終点。
clampvalue を start と end の間に制限するプロパティ。
value補間された値。wedge_index グローバル変数および wedge_index_count グローバル変数は、次のようにリニア補間で使用されます。
// Let wedge_index be the index of the wedge.
// Let wedge_index_count be the index count of the wedge.
// For wedge_index_count less than or equal to 0, then the returned value is `start`.
// If wedge_index_count is equal to 1, then `t` is wedge_index / 1.
if (wedge_index_count <= 0) {
value = start
}
else {
float t = wedge_index / max(1, wedge_index_count-1)
value = start + t * (end-start)
}