rebeccap
08-11-2010 21:00:08
I am trying to create some waves that are superimposed on top of "standard" random hydrax water.
I have a function which calculates the height of a wave for given x and y coordinates like so (where z is "up"):
My question is, where's a good place to insert the return value from this function? I tried modifying the getValue method inside Noise::Perlin but this just breaks everything (I am presented with an underwater scene and a small window to the sky).
I have a function which calculates the height of a wave for given x and y coordinates like so (where z is "up"):
const float getWaveHeight(const float& x, const float& y)My question is, where's a good place to insert the return value from this function? I tried modifying the getValue method inside Noise::Perlin but this just breaks everything (I am presented with an underwater scene and a small window to the sky).