water improvements

This commit is contained in:
Turánszki János
2023-10-04 19:48:34 +02:00
parent 6be1e8b287
commit e5a4e7d1cb
10 changed files with 131 additions and 57 deletions
+2
View File
@@ -1733,6 +1733,8 @@ namespace wi::scene
XMVECTOR _Up = XMLoadFloat3(&Up);
XMMATRIX _Ref = XMMatrixReflect(XMLoadFloat4(&plane));
clipPlaneOriginal = plane;
// reverse clipping if behind clip plane ("if underwater")
clipPlane = plane;
float d = XMVectorGetX(XMPlaneDotCoord(XMLoadFloat4(&clipPlane), _Eye));