AOShader

AOShader

The built-in ambient occlusion shader for the WebGL renderer. You can set its properties at start-up to change the renderer's ambient occlusion effects.

Note: The ambient occlusion shader is only created on devices that support WebGL2. So before you set any shader properties, always check to see if it exists.