I created a custom mesh and added a simple material to it as a test, and it works great. Then, I added a ShaderBlow MatCap material to it, looks great and works fine. Then, I added this material to it:
waterMat = new Material(mainapp.getAssetManager(), “Common/MatDefs/Water/SimpleWater.j3md”);
And the geometry is rendered completely black!! I do have ambient and directional lights in my scene, and they are lighting up my plaers 3d model properly. Why is SimpleWater.jm3d black? Is there something special about it?
Could you post a screen shot?
Also the water processor is not made to work on a box, you’ll have reflection issue with it. It’s done to make a water plane.
I actually did get this working after using that test scene. However, the material does indeed have messed up reflection. I put the material on some voxels, for voxel water, and it performs with great fps rates but the reflection/refraction just looks messed up. I just want the shader to reflect the scene but completely upside down, so you just see the sky in the water (any maybe other stuff but that can come later).
In an ideal world, the ‘reflection normal’ would be straight up into the air, not off on a weird angle. How would i achieve this? Could I just edit the waterprocessor or do I need to tear apart the shaders?