Skip to content

eulerjs API / @eulerjs/marine/webgpu / SeaFogOptions

SeaFogOptions ​

Defined in: packages/marine/src/webgpu/seaFog.ts:8

Properties ​

PropertyTypeDescriptionDefined in
height?numberHow high the haze reaches, in metres: it thins from the sea up to here, and is gone above. Defaults to 500.packages/marine/src/webgpu/seaFog.ts:12
sunDirection?Vector3Toward the sun, for its glow through the haze. Defaults to straight up.packages/marine/src/webgpu/seaFog.ts:14
sunGlow?ColorThe sun's glow through the haze. Defaults to a warm white, 1.5.packages/marine/src/webgpu/seaFog.ts:16
visibility?numberHow thick the haze is: things this many metres off are a third hidden, twice as far all but gone. Defaults to 12 km.packages/marine/src/webgpu/seaFog.ts:10

Released under the MIT License.