Skip to content

eulerjs API / @eulerjs/marine/webgpu / WaterVertex

WaterVertex ​

Defined in: packages/marine/src/webgpu/waterMaterial.ts:77

Where a level of detail puts a vertex of the water before the waves move it: its undisplaced position on the sea, and the spacing of its vertices there.

Properties ​

PropertyTypeDescriptionDefined in
gridanyvec2: x and z in the world.packages/marine/src/webgpu/waterMaterial.ts:79
spacinganyfloat: metres between this vertex and its neighbours, which sets how finely it samples the waves. Where levels meet, a vertex must sample them as the vertex of the other level it sits on does, or the two get different heights and the surface cracks between them.packages/marine/src/webgpu/waterMaterial.ts:85

Released under the MIT License.