Skip to main content
Disambiguating reflection tag as discussed here https://gamedev.meta.stackexchange.com/q/2552/39518
Link
DMGregory
  • 141k
  • 23
  • 258
  • 401
Tweeted twitter.com/#!/StackGameDev/status/242502409056833537
Source Link

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.