Set the bloom threshold||doc135733

September 20, 2022

Format

 GameSettings:setBloomThreshold(val) 

Description

Sets the brightness threshold for bloom.


Precautions

Set the brightness threshold of floodlight. When the threshold is reached, the pixels below this brightness level are filtered out, and the pixels larger than this value are reserved, so that a map containing only the parts that need floodlight can be obtained. we can usegetBloomThresholdto get the size of the current threshold.


Parameters

Variable name type Description
val float threshold


Code Samples

Blockman.Instance().gameSettings:setBloomThreshold(0.5)
print(Blockman.Instance().gameSettings:getBloomThreshold())