Skip to main content
1 of 3
philB
  • 159
  • 9

Finally the problem was in the normal used for SSR. Retrieving the z component from the stored xy format by the Pythagorean theorem works well if the sign of z can be fixed. Apparently when the camera rotate around the x axis (e.g. axis parallel to screen width in my case) the sign and/or the retrieved z value are not consistent (I have to check that) and so it is better to store the normal in full xyz R10B10G10 format. Doing so solved my problem with good precision. Alternative packed format for SSR normal could be another answer if a sign can be stored.

philB
  • 159
  • 9