beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Render fog as a texture effect using a depth texture

summary (oneliner)

Allows fog to be added to a scene as a texture effect

doc

issues

youtube id

collections

related ops

Inputs

render (Trigger)

Trigger


Blending

Blend Mode (string Number)

Blend mode


Amount (Number)

Amount of blend mode


depth texture (Object)

Depth texture in


Color gradient (Object)

gradient texture changes fog over distance


Frustum near (Number)

Frustrum near


Frustum far (Number)

Frustrum near


fogStart (Number)

Fog start - default 0


fogEnd (Number)

Fog end


density (Number)

Density of fog


fog r (Number)

Fog red color amount


fog g (Number)

Green color amount


fog b (Number)

Blue color amount


fog a (Number)

Alpha amount


invert direction (boolean Number)

Invert direction of fog


Outputs

trigger (Trigger)

TRigger out


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
Fog texture example:

This patch shows how we can use the depth texture to create a 'fog' like effect to a simple scene.



Credits


Changelog


created op
2019-08-09 - andro

Examples using Fog_v2

Public Patches using Fog_v2