Skip to content

Type alias: GlobalFogSetting

Ƭ GlobalFogSetting: Object

Global fog effect setting

Type declaration

NameTypeDescription
debugany-
enablebooleanenable
fogTypenumbertype of fog: 0: linear exponent 2: squar exponent
fogHeightScalenumberSetting the Influence of Height on Fog
startnumberIf the distance between the object and the camera is set as distance, the fog concentration will be linear interpolation between start and end
endnumberIf the distance between the object and the camera is set as distance, the fog concentration will be linear interpolation between start and end
densitynumberWhen the type is exponential square fog, the fog concentration coefficient is added
insnumberThe effect of setting height on fog (working together with height)
skyFactornumbermix fog color with sky color
skyRoughnessnumberuse mipmap level
overrideSkyFactornumberfactor effect the sky
fogColorColorfog color
falloffnumber-
rayLengthnumber-
scatteringExponentnumber-
dirHeightLinenumber-

Defined in

src/setting/post/GlobalFogSetting.ts:7