Add world distance and height based fog


See the last few parameters for fog control.

Note: density parameter is not enabled yet, for possible future function.

Every tick the camera is moved, the fog camera position parameters must be updated.

Example is included.

Right now only for webGL2, webGPU version to come.

Files

mikal_frag_light-8-1.3.2.c3addon 9 kB
Mar 20, 2024
FogExample.c3p 272 kB
Mar 20, 2024

Get Construct 3 - 3D effects

Buy Now$10.00 USD or more

Comments

Log in with itch.io to leave a comment.

(4 edits)

Fog looks so good. Imagine a graveyard with this fog effect. You should relase optional another plugin to add fog to every project without frag light addon

(4 edits)

The reason we are adding these all to one addon is because we cannot 'stack' these types of effects, they all need to be the first effect used in the effect stack for direct 3d rendering. For now, if you don't need the other features, disable them to reduce the perf impact from features not being used.