eulerjs API / @eulerjs/marine/webgpu / seaFog
seaFog()
ts
function seaFog(environment, options?): any;Defined in: packages/marine/src/webgpu/seaFog.ts:36
A haze over the sea for scene.fogNode, as Acerola's atmosphere makes it (github.com/GarrettGunnell/Water): thicker the farther off, as e^-(distance / visibility)², and thinner the higher up; coloured as the sky is the way one looks, brought down to the horizon, so that the sea fades into the sky with no line between them, and glowing toward the sun. It hides the sea's farthest reaches, where its patches' repeats show most.
scene.fogNode = seaFog(scene.environment, { sunDirection });
Parameters
| Parameter | Type |
|---|---|
environment | Texture |
options? | SeaFogOptions |
Returns
any
