1
0
鏡像自 https://github.com/luanti-org/luanti.git 已同步 2025-11-18 23:55:26 +01:00

Improve bloom effect (#12916)

* Remove the built-in exposure factor of 2.5
* Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom)
* Add luminance scaling for bloom layer to simulate HDR
* Add setting to control bloom strength
此提交包含在:
x2048
2022-11-02 09:09:48 +01:00
提交者 GitHub
父節點 fb3085a2c5
當前提交 9b24041394
共有 15 個檔案被更改,包括 195 行新增59 行删除

查看文件

@@ -470,21 +470,19 @@ enable_bloom (Enable Bloom) bool false
# bottom-left - raw base image, bottom-right - bloom texture.
enable_bloom_debug (Enable Bloom Debug) bool false
# Set to true to use dedicated texture at each step of bloom effect.
# This is a compatibility setting to avoid visual artifacts
# on certain GPUs and video drivers.
enable_bloom_dedicated_texture (Enable Bloom Dedicated Texture) bool false
# Set the intensity of bloom
# Defines how much bloom is applied to the rendered image
# Smaller values make bloom more subtle
# Range: from 0.01 to 1.0, default: 0.05
bloom_intensity (Bloom Intensity) float 0.05 0.01 1.0
# Set the radius of the bloom filter in pixels.
# Larger values render more glow around bright objects
# at the cost of higher resource consumption.
# Range: from 1 to 64, default: 16
bloom_radius (Bloom Radius) int 16 1 64
# Defines the magnitude of bloom overexposure.
# Range: from 0.1 to 10.0, default: 1.0
bloom_strength_factor (Bloom Strength Factor) float 1.0 0.1 10.0
# Logical value that controls how far the bloom effect spreads
# from the bright objects.
# Range: from 0.1 to 8, default: 1
bloom_radius (Bloom Radius) float 1 0.1 8
[*Audio]