Realistic water scene node for Irrlicht
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
shaders
LICENSE
README.md
RealisticWater.cpp
RealisticWater.h

README.md

RealisticWaterSceneNode

Water scene node with reflections and refractions for Irrlicht

Water demo

Usage

To create the water scene node, use the following code

const f32 width = 512.0f;
const f32 height = 512.0f;
std::string resourcePath;
#ifdef __APPLE__
    NSString* path = [[NSBundle mainBundle]resourcePath];
    resourcePath = [path cStringUsingEncoding:NSASCIIStringEncoding];
#endif

RealisticWaterSceneNode* water = new RealisticWaterSceneNode(SceneManager, width, height, resourcePath);
SceneManager->getRootSceneNode()->addChild(water);