Skip to main content
2 of 2
Disambiguating reflection tag as discussed here https://gamedev.meta.stackexchange.com/q/2552/39518
DMGregory
  • 141k
  • 23
  • 258
  • 401

Problem with D3DXMatrixReflect

Currently I am trying to reflect a sky sphere into a flat piece of geometry which is acting as water. The sphere is very small, it follows the camera on all 3 axis and the z-buffer is turned off so it appears behind everything else.

Can someone please tell me how I can reflect the world matrix on a xz plane. And should I the plane be the water height or the camera height.

Thank you.