harmony 鸿蒙ScenePostProcessSettings

  • 2025-06-12
  • 浏览 (3)

ScenePostProcessSettings

The ScenePostProcessSettings module provides image post-processing methods (for example, tone mapping) in 3D graphics.

NOTE

The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Modules to Import

import { ToneMappingType, ToneMappingSettings, BloomSettings, PostProcessSettings } from '@kit.ArkGraphics3D';

ToneMappingType

Enumerates the tone mapping types.

System capability: SystemCapability.ArkUi.Graphics3D

Name Value Description
ACES 0 Academy Color Encoding System (ACES).
ACES_2020 1 ACES_2020.
FILMIC 2 Filmic.

ToneMappingSettings

Describes the tone mapping settings.

Properties

System capability: SystemCapability.ArkUi.Graphics3D

Name Type Read Only Optional Description
type ToneMappingType No Yes Tone mapping type. The default value is undefined.
exposure number No Yes Exposure. The value must be greater than 0. The default value is undefined.

BloomSettings18+

Describes the bloom settings.

Properties

System capability: SystemCapability.ArkUi.Graphics3D

Name Type Read Only Optional Description
thresholdHard number No Yes Hard threshold. The value is a non-negative number. The default value is 1.0.
thresholdSoft number No Yes Soft threshold. The value is a non-negative number. The default value is 2.0.
scaleFactor number No Yes Scale factor. The value must be greater than 0. The default value is 1.0.
scatter number No Yes Scatter amount. The value must be greater than 0. The default value is 1.0.

PostProcessSettings

Describes the post-processing settings.

System capability: SystemCapability.ArkUi.Graphics3D

Name Type Read Only Optional Description
toneMapping ToneMappingSettings No Yes Tone mapping. The default value is undefined.
bloom18+ BloomSettings No Yes Bloom. The default value is undefined.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 3D

harmony 鸿蒙SceneNode

harmony 鸿蒙SceneResource

harmony 鸿蒙SceneType

harmony 鸿蒙Scene

harmony 鸿蒙@ohos.graphics.scene (ArkGraphics 3D)

0  赞