跳至正文
版本:latest - a1.147.x ⚖️

🖼️ 后处理

与后处理效果的交互。

🗿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!

🗿 静态函数

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

RemoveMaterial

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

SetBloom

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

Parameters

TypeParameterDefaultDescription
floatintensity?0.675No description provided
floatthreshold?-1No description provided

SetChromaticAberration

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

Parameters

TypeParameterDefaultDescription
floatintensity?0No description provided
floatstart_offset?0No description provided

SetExposure

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

Parameters

TypeParameterDefaultDescription
floatexposure_compensation?1No description provided
floatmin_ev100?-10No description provided
floatmax_ev100?20No description provided
floatlow_percent?10No description provided
floathigh_percent?90No description provided

SetFilm

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

Parameters

TypeParameterDefaultDescription
floatslope?0.8No description provided
floattoe?0.55No description provided
floatshoulder?0.26No description provided
floatblack_clip?0No description provided
floatwhite_clip?0.3No description provided

SetGlobalContrast

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

Parameters

TypeParameterDefaultDescription
Colorcontrast Required parameter No description provided

SetGlobalGain

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

Parameters

TypeParameterDefaultDescription
Colorgain Required parameter No description provided

SetGlobalGamma

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

Parameters

TypeParameterDefaultDescription
Colorgamma Required parameter No description provided

SetGlobalOffset

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

Parameters

TypeParameterDefaultDescription
Coloroffset Required parameter No description provided

SetGlobalSaturation

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

Parameters

TypeParameterDefaultDescription
Colorcolor Required parameter No description provided

SetImageEffects

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

Parameters

TypeParameterDefaultDescription
floatvignette_intensity?0.6No description provided
floatfilm_grain_intensity?0No description provided

SetLookupTable

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

Parameters

TypeParameterDefaultDescription
Image Pathtexture_path Required parameter No description provided

SetMaterial

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

Parameters

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

🚀 事件

This class doesn't have own events.