Skip to content

Light Scattering

By configuring light scattering settings, you can achieve effects such as fog-like expressions or distant scenery appearing hazy and blue.

Info

SDK version: 4
OS: Windows 10
Unity: 2019.4.31.f1
Browser: Google Chrome

Info

HEOWorldSetting → It is located in RenderingSettings in VketCloudSettings
LightScattering00
Also, in order to display RenderingSettings, you need to set the setting mode to Advanced in VketCloudSettings.
LightScattering01

Difference between with and without light scattering

LightScattering02

With light scattering (cloudy expression)

LightScattering03

No light scattering

How to check the light scattering settings

In HEOWorldSetting, with Debug Mode checked, press the F2 key during execution to open the debug window, select the Renderring tab, expand the LightScattering item, and check the light scattering settings while adjusting them. You can.

Info

Before VketCloudSDK9, the UI looks different, but the functions that can be used are roughly the same.

LightScattering04

By reducing the Distance, you can express deep fog,

LightScattering05

By adjusting LightColor/SunColor, it is possible to create a sunset-like effect. However, I think it will look more natural if it matches the reflection probe.

After checking the setting values, check the Light Scattering of Rendering in WorldSetting, Enter the numerical value in the input field that appears.

LightScattering06

By building in this state, you can create a world that reflects the light scattering settings.

LightScattering07

Exclude light scattering by material

You may want to exclude light scattering for each material, such as SkyBox. In that case, use "VketChanUnlit.shader" included in the SDK,

LightScattering07

Build with the "UseLightScattering" checkbox unchecked.

LightScattering09

Other findings

LightScattering10

If you click the "Use" checkbox if Light Scattering was set during build, it will switch to a state where Light Scattering is not applied.