🖼️ 后处理
与后处理效果的交互。
🗿Static Class
This is a Static Class. Access it's methods directly with
.. It's not possible to spawn new instances.💂Authority
This static class can be accessed only on 🟧 Client side.
🧑💻API Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!
🗿 静态函数
| Returns | Name | Description | |
|---|---|---|---|
RemoveMaterial | 移除当前的后处理材质 | ||
SetBloom | 设置后处理辉光设置 | ||
SetChromaticAberration | 设置后处理色差设置 | ||
SetExposure | 设置后处理曝光设置 | ||
SetFilm | 设置后处理电影设置 | ||
SetGlobalContrast | 设置后处理全局对比度 | ||
SetGlobalGain | 设置后处理全局增益 | ||
SetGlobalGamma | 设置后处理全局伽马值 | ||
SetGlobalOffset | 设置后处理全局偏移 | ||
SetGlobalSaturation | 设置后处理全局饱和度颜色。使用 Alpha 通道来控制整体饱和度强度 | ||
SetImageEffects | 设置后处理图像效果设置 | ||
SetLookupTable | 设置后处理查找表(LUT)纹理 | ||
SetMaterial | 设置后处理材质 |

RemoveMaterial
移除当前的后处理材质
PostProcess.RemoveMaterial()

SetBloom
设置后处理辉光设置
PostProcess.SetBloom(intensity?, threshold?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| float | intensity? | 0.675 | No description provided |
| float | threshold? | -1 | No description provided |

SetChromaticAberration
设置后处理色差设置
PostProcess.SetChromaticAberration(intensity?, start_offset?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| float | intensity? | 0 | No description provided |
| float | start_offset? | 0 | No description provided |

SetExposure
设置后处理曝光设置
PostProcess.SetExposure(exposure_compensation?, min_ev100?, max_ev100?, low_percent?, high_percent?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| float | exposure_compensation? | 1 | No description provided |
| float | min_ev100? | -10 | No description provided |
| float | max_ev100? | 20 | No description provided |
| float | low_percent? | 10 | No description provided |
| float | high_percent? | 90 | No description provided |

SetFilm
设置后处理电影设置
PostProcess.SetFilm(slope?, toe?, shoulder?, black_clip?, white_clip?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| float | slope? | 0.8 | No description provided |
| float | toe? | 0.55 | No description provided |
| float | shoulder? | 0.26 | No description provided |
| float | black_clip? | 0 | No description provided |
| float | white_clip? | 0.3 | No description provided |

SetGlobalContrast
设置后处理全局对比度
PostProcess.SetGlobalContrast(contrast)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Color | contrast | Required parameter | No description provided |

SetGlobalGain
设置后处理全局增益
PostProcess.SetGlobalGain(gain)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Color | gain | Required parameter | No description provided |

SetGlobalGamma
设置后处理全局伽马值
PostProcess.SetGlobalGamma(gamma)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Color | gamma | Required parameter | No description provided |

SetGlobalOffset
设置后处理全局偏移
PostProcess.SetGlobalOffset(offset)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Color | offset | Required parameter | No description provided |

SetGlobalSaturation
设置后处理全局饱和度颜色。使用 Alpha 通道来控制整体饱和度强度
PostProcess.SetGlobalSaturation(color)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Color | color | Required parameter | No description provided |

SetImageEffects
设置后处理图像效果设置
PostProcess.SetImageEffects(vignette_intensity?, film_grain_intensity?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| float | vignette_intensity? | 0.6 | No description provided |
| float | film_grain_intensity? | 0 | No description provided |

SetLookupTable
设置后处理查找表(LUT)纹理
PostProcess.SetLookupTable(texture_path)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Image Path | texture_path | Required parameter | No description provided |

SetMaterial
设置后处理材质
PostProcess.SetMaterial(material_path)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Material Reference | material_path | Required parameter | 要设为后处理的材质资产 |
🚀 事件
This class doesn't have own events.