Hi,
I learned some tricks from your tutorial 2, like how to transform a Vec4 into a Vec3.xyz+vec3.a to remove/tweak the alpha channel separately and set it back.
I came up with this modification where I re-substract 10 to the alpha chanel to remove Leadwerks "red selection boolean"
#if BFN_ENABLED==1
//Best-fit normals
fragData1 = vec4(texture(texture15,normalize(vec3(normal.x,-normal.y,normal.z))).xyz,texture(texture15,normalize(vec3(normal.x,-normal.y,normal.z))).a-10);
#else
//Low-res normals
fragData1 = vec4(normalize(normal)*0.5+0.5,fragData0.a-10);
#endif
It works but I see no difference compared to the version where fragData1 is completely commented out. An alternative is to remove the apha chanel completely and set it to 0 in the vec4 with the same result.
I believe something is still wrong because I do not see the water go up & down at the shoreline.