Where the ocean meets the shore

Blitz3D Forums/Blitz3D Beginners Area/Where the ocean meets the shore

Terry B.(Posted 2007) [#1]
How would you tell where an ocean meets the shore.
Lets say you have a plane, as the water, and a terrain as the island, and you want to place a foam texture where the ocean meets the terrain. Is there any way to do this?


H&K(Posted 2007) [#2]
Height.

The ocean meets the land when they are at the same height


Terry B.(Posted 2007) [#3]
Ok, but how would I put the foam texture there?


b32(Posted 2007) [#4]
Maybe instead of a plane for the water, you could use a custom mesh (like the one in the 'flag.bb' example) ? The advantage would be, that you could set the texture coordinates for each triangle.
You could then set up the foam as a second texture layer, with it's own TexCoords, and then use PositionTexture to move it.