Search Unity

Simple Moving Water for iOS?

Discussion in 'iOS and tvOS' started by Adam-Buckner, Feb 9, 2011.

  1. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    I've been trawling the forums and other sources for the simplest approach to having moving water on an iOS device. Most of the threads seem to be obsessed with getting water as pretty as possible; people trying to push hard with transparency, reflection and other tasty but expensive eye-candy. I'd be happy with just moving in a half convincing manner as long as it was super-low on the resource budget. (Think Apollo-13 when restarting from batteries...)

    The first thought I had was just a series of tri's and renderer.material.mainTextureOffset ++ over time with a tile-able texture (and perhaps a transparent vertex shader if I was feeling like I wanted to splash out... as it were...).

    This is to add some life to a scene like this quick test scene:




    Frankly I think the tri's need to be more dense, and maybe a separate solution to large bodies, but this it the idea of what I'm after.

    Has anyone else put any thought to this?