eulerjs API / @eulerjs/marine/webgpu / SpectralWaterMaterialOptions
SpectralWaterMaterialOptions
Defined in: packages/marine/src/webgpu/waterMaterial.ts:9
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
color? | Color | The colour of the water looked into, lit by the sky. Defaults to a light sea blue: lighter than the open ocean's, which is all but black. | packages/marine/src/webgpu/waterMaterial.ts:11 |
environment? | Texture<unknown, TextureEventMap> | The sky, as PMREMGenerator makes it, best without the sun's disc in it. Given it, the water is shaded as water looks: a mirror of the sky by Fresnel's law (a fiftieth looking straight down, all of it at grazing angles, so the sea pales toward the horizon), over the deep water's colour, with the sun glinting off it. Without it, it is a MeshPhysicalNodeMaterial lit by the scene's lights and environment. | packages/marine/src/webgpu/waterMaterial.ts:35 |
foamAmount? | number | How much of the foam GpuWaveFields keeps is drawn, 0 for none. Defaults to 1. | packages/marine/src/webgpu/waterMaterial.ts:17 |
foamLowest? | number | How far down a wave foam reaches before it is gone, as a height over half the significant wave height: 0, the still water's level; 0.5, halfway up a typical crest. Defaults to -0.15, a little below it, so foam trails a way down the backs of the waves. | packages/marine/src/webgpu/waterMaterial.ts:27 |
foamPeakBoost? | number | How many times more foam there is on a wave's peak than its Jacobian alone makes. Defaults to 2.8. | packages/marine/src/webgpu/waterMaterial.ts:21 |
foamSubtract? | readonly number[] | Taken off each patch's foam, from the largest, before they are added up: to clear the faint foam a patch leaves all over. Defaults to none. | packages/marine/src/webgpu/waterMaterial.ts:19 |
scatter? | number | How much light the water scatters back, 0 for none. Defaults to 1. | packages/marine/src/webgpu/waterMaterial.ts:15 |
scatterColor? | Color | The colour of the light the water scatters back, brightest through the crests and looked into toward the sun. Defaults to a turquoise. | packages/marine/src/webgpu/waterMaterial.ts:13 |
sunColor? | Color | The glint's colour and brightness, with environment: the sun is far brighter than the sky. Defaults to a warm white, 150. | packages/marine/src/webgpu/waterMaterial.ts:39 |
sunDirection? | Vector3 | Toward the sun, for its glint, with environment. Defaults to straight up. | packages/marine/src/webgpu/waterMaterial.ts:37 |
sunLight? | Color | The sun's light on the water, which it scatters back and lights the foam with, with environment. Defaults to a warm white, 2.5. | packages/marine/src/webgpu/waterMaterial.ts:41 |
