SSAO radius working incorrectly with Orthographic Camera

Description of the problem

SSAO radius appears to be in screen space when using orthographic camera and world space when using perspective camera.

After a quick look, perhaps the radius calculation in:

float calcAO( float depth, float dw, float dh )

needs to somehow take into account the orthographic zoom value.

https://github.com/mrdoob/three.js/blob/dev/examples/js/shaders/SSAOShader.js

Three.js version
  • Dev
  • [x ] r81
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, …)

N/A

Author: Fantashit

1 thought on “SSAO radius working incorrectly with Orthographic Camera

Comments are closed.