Jump to content

Gav

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Gav

  1. I found a modified water shader i was experimenting in the past which adds a second foam layer to water. It has the default fields for direction and speed and I think it's easy to add sequence animation or at least fade it in-out. About the shoreline foam maybe we could do something similar but i really think this is beyond my skills :(

    http://s16.postimg.org/5cnrpfhr9/foam.jpg i can share this if you find it useful.

  2. I think the Pacific Demo has some kind of wave foam by placing decals with transparency & animation near the terrain. But if you want animated foam on the water without particles you could use a flat mesh with sequence animation material as previously suggested.

  3. You just need to copy an existing variable like this. You can create a new protected boolean variable mUpdateTexture to the class, initialize it with true here and add the field here. Then change this line to:

    if ( Platform::compareModifiedTimes( baseCachePath, mTerrFileName ) < 0 && mUpdateTexture )

    .


    EDIT: You also need to read/write the mUpdateTexture variable to the network stream (TerrainBlock::packUpdate() & TerrainBlock::unpackUpdate())

×
×
  • Create New...