紋理函數
5 個節點
本頁內容 5
組合數值
函數Two textures combined by your function, value by value.
簽名
組合數值 -> Texture
甲: Texture
乙: Texture
函數: Func<數字, 數字, 數字>Texture CombineValues(
Texture a,
Texture b,
Func<double, double, double> function)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 甲 | Texture | — | The first texture. |
| 乙 | Texture | — | The second texture. |
| 函數 | Func<數字, 數字, 數字> | — | The result for a pair of values. |
返回
| 結果 | Texture |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 紋理函數
- 所屬包
- 影像處理
對映數值
函數Every value of a texture passed through your function: a custom curve, a remap no other node gives.
簽名
對映數值(紋理: Texture, 函數: Func<數字, 數字>) -> Texture
Texture MapValues(
Texture texture,
Func<double, double> function)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 紋理 | Texture | — | The texture. |
| 函數 | Func<數字, 數字> | — | The new value for an old one. |
返回
| 結果 | Texture |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 紋理函數
- 所屬包
- 影像處理
像素函數
函數A greyscale texture whose every pixel is your function of its position: across (u) and down (v), each 0 to 1 over the texture.
簽名
像素函數(函數: Func<數字, 數字, 數字>, 尺寸: 整數) -> Texture
Texture PixelFunction(
Func<double, double, double> function,
int size = 256)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 函數 | Func<數字, 數字, 數字> | — | The value at (u, v). |
| 尺寸 | 整數 | 256 | Width and height in pixels. |
返回
| 結果 | Texture |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 紋理函數
- 所屬包
- 影像處理
取樣紋理
函數The value of a texture at a point, 0 to 1 across and down, smoothly between pixels: for reading a texture inside a function.
簽名
取樣紋理(紋理: Texture, u: 數字, v: 數字) -> 數字
double SampleTexture(Texture texture, double u, double v)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 紋理 | Texture | — | The texture. |
| u | 數字 | — | Across, 0 to 1; beyond wraps. |
| v | 數字 | — | Down, 0 to 1; beyond wraps. |
返回
| 結果 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 紋理函數
- 所屬包
- 影像處理
紋理取值範圍
函數The lowest and highest values in a texture.
簽名
紋理取值範圍(紋理: Texture) -> (結果: 數字, 最大值: 數字)
double TextureRange(Texture texture, out double maximum)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 紋理 | Texture | — | The texture. |
返回
| 結果 | 數字 |
| 最大值 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 紋理函數
- 所屬包
- 影像處理