-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Labels
Description
Description of the problem
The SSAO shader should produce darker output in areas that are more enclosed. The current SSAO example actually is just using the normal derived from the depth buffer and making it darker the more they are not facing the camera.
Not sure what it is trying to do but the current implementation is just broken - it is more like a directional light facing in the same direction as the camera:
Link: http://threejs.org/examples/#webgl_postprocessing_ssao
Here is what an SSAO/SAO implementation should look like - enclosed regions are darkened, everything else (including non-camera facing normals) should be left alone:
Link: https://clara.io/view/76f2e700-042d-4c80-bf0b-19e18d262513
...
Three.js version
- Dev
- r75
- ...
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- Linux
- Android
- IOS

