Original Post
Hey guys I am in need of some help with my water :) Im getting artifacts in the water and when I render out my reflection texture it looks as though either the clipping is wrong or the culling. Here is the code I use to render the reflections Vector3 reflectPoint(0, -waterHeight,0); Vector3 reflectNormal(0, 1 ,0); //Setup Reflection Plane D3DXPlaneFromPointNormal(&mReflectionPlane, &reflectPoint, &reflectNormal); mpD3DDevice->SetClipPlane(0, mReflectionPlane); mpD3DDevice->SetRenderState( D3DRS_CLIPPLANEENABLE, D3DCLIPPLANE0); Matrix flippedView; Matrix scale; matReflect.Identity(); flippedView = matView; D3DXMatrixReflect(&matReflect, &mRefractionPlane); D3DXMatrixMultiply(&flippedView, &matReflect, &flippedView); Matrix matWorldViewProj = matWorld * flippedView * matProj; mWaterEffect.SetTexture("DiffuseMap", &diffuseTexture); mWaterEffect.SetMatrix(&matWorldViewProj, "matWorldViewProjection"); mWaterEffect.CommitChanges(); Any help would be appreciated ;)