跳至正文
版本:最新版 - a1.156.0 ⚖️

🖼️ 后处理

与后处理效果的交互。

🗿Static ClassClient Only🧑‍💻API Source

🗿 静态函数​

ReturnsNameDescription
RemoveMaterial移除当前的后处理材质
SetBloom设置后处理辉光设置
SetChromaticAberration设置后处理色差设置
SetExposure设置后处理曝光设置
SetFilm设置后处理电影设置
SetGlobalContrast设置后处理全局对比度
SetGlobalGain设置后处理全局增益
SetGlobalGamma设置后处理全局伽马值
SetGlobalOffset设置后处理全局偏移
SetGlobalSaturation设置后处理全局饱和度颜色。使用 Alpha 通道来控制整体饱和度强度
SetImageEffects设置后处理图像效果设置
SetLookupTable设置后处理查找表(LUT)纹理
SetMaterial设置后处理材质

Optimal

RemoveMaterial​

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

Optimal

SetBloom​

设置后处理辉光设置
PostProcess.SetBloom(intensity?, threshold?)

Parameters

TypeParameterDefaultDescription
floatintensity?0.675
泛光强度
floatthreshold?-1
像素产生泛光的最低亮度

Optimal

SetChromaticAberration​

设置后处理色差设置
PostProcess.SetChromaticAberration(intensity?, start_offset?)

Parameters

TypeParameterDefaultDescription
floatintensity?0
色差强度
floatstart_offset?0
产生色差效果距离屏幕中心的起始距离(0 到 1)

Optimal

SetExposure​

设置后处理曝光设置
PostProcess.SetExposure(exposure_compensation?, min_ev100?, max_ev100?, low_percent?, high_percent?)

Parameters

TypeParameterDefaultDescription
floatexposure_compensation?1
曝光补偿(EV)
floatmin_ev100?-10
自动曝光最小亮度(EV100)
floatmax_ev100?20
自动曝光最大亮度(EV100)
floatlow_percent?10
自动曝光使用的直方图低百分比截断值
floathigh_percent?90
自动曝光使用的直方图高百分比截断值

Optimal

SetFilm​

设置后处理电影设置
PostProcess.SetFilm(slope?, toe?, shoulder?, black_clip?, white_clip?)

Parameters

TypeParameterDefaultDescription
floatslope?0.8
胶片色调映射 S 曲线的陡峭度
floattoe?0.55
调节暗部色调
floatshoulder?0.26
调节亮部色调
floatblack_clip?0
暗部色调裁剪点
floatwhite_clip?0.3
亮部色调裁剪点

Optimal

SetGlobalContrast​

设置后处理全局对比度
PostProcess.SetGlobalContrast(contrast)

Parameters

TypeParameterDefaultDescription
Colorcontrast Required parameter 新的后处理全局对比度

Optimal

SetGlobalGain​

设置后处理全局增益
PostProcess.SetGlobalGain(gain)

Parameters

TypeParameterDefaultDescription
Colorgain Required parameter 新的后处理全局增益

Optimal

SetGlobalGamma​

设置后处理全局伽马值
PostProcess.SetGlobalGamma(gamma)

Parameters

TypeParameterDefaultDescription
Colorgamma Required parameter 新的后处理全局伽马值

Optimal

SetGlobalOffset​

设置后处理全局偏移
PostProcess.SetGlobalOffset(offset)

Parameters

TypeParameterDefaultDescription
Coloroffset Required parameter 新的后处理全局偏移量

Optimal

SetGlobalSaturation​

设置后处理全局饱和度颜色。使用 Alpha 通道来控制整体饱和度强度
PostProcess.SetGlobalSaturation(color)

Parameters

TypeParameterDefaultDescription
Colorcolor Required parameter 新的后处理饱和度颜色。使用 Alpha 通道来控制整体饱和度强度

Optimal

SetImageEffects​

设置后处理图像效果设置
PostProcess.SetImageEffects(vignette_intensity?, film_grain_intensity?)

Parameters

TypeParameterDefaultDescription
floatvignette_intensity?0.6
屏幕边缘晕影
floatfilm_grain_intensity?0
胶片颗粒噪点量

Slow

SetLookupTable​

设置后处理查找表(LUT)纹理
PostProcess.SetLookupTable(texture_path)

Parameters

TypeParameterDefaultDescription
Image Pathtexture_path Required parameter 新的后处理颜色查找表 (LUT) 纹理

Slow

SetMaterial​

设置后处理材质
PostProcess.SetMaterial(material_path)

Parameters

TypeParameterDefaultDescription
Material Referencematerial_path Required parameter 要设为后处理的材质资产

🚀 事件​

This class doesn't have own events.