The new SSAO not working on iOS

Description of the problem

https://threejs.org/examples/?q=ssao#webgl_postprocessing_ssao

use iPhone safari open this link. will get a black screen result.
So is it ssao not support iOS?

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

Author: Fantashit

1 thought on “The new SSAO not working on iOS

  1. I can not set it up manually.

    SSAOPass uses the values from the given camera. It should be no problem for you to change these values in your code. I mean the properties of your camera.

    this.ssaoMaterial.uniforms[ ‘cameraNear’ ].value = this.camera.near;
    this.ssaoMaterial.uniforms[ ‘cameraFar’ ].value = this.camera.far;

    And yeah, using the bounding volume that encloses your scene is a valid approach in order to derive near and far values for the camera. Many viewers use this approach.

Comments are closed.