# SSAORenderingPipeline vs SSAO2RenderingPipeline

**URL:** <https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197>\
**Category:** Questions\
**Created:** [May 9, 2022, 1:28pm UTC](https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197 "2022-05-09T13:28:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![travisvroman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/travisvroman/32/23859_2.png) [@travisvroman](https://forum.babylonjs.com/u/travisvroman)\
**Post date:** [May 9, 2022, 1:28pm UTC](https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197/1 "2022-05-09T13:28:31Z")

</div>

Good morning! I’ve been scouring the docs and the forums for a bit trying to find the answer to this but to no avail. I see that there is a `SSAORenderingPipeline` in addition to a `SSAO2RenderingPipeline`. I read somewhere in a forum post that one difference was supposedly the `SSAO2RenderingPipeline` is for WebGL2, and the `SSAORenderingPipeline` is for WebGL 1. So a few question regarding this:

1. ) Is this accurate that one main difference is the version of WebGL?  
2.) Is there a functional difference between the two?  
3.) Is there a performance benefit/drawback to using one over the other?

Thank you!

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 9, 2022, 2:18pm UTC](https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197/2 "2022-05-09T14:18:44Z")

</div>

The second one (webgl2 only) should have a better visual quality and overall perf profile. There should not be much diff functionaly.

@CraigFeldspar could confirm ?

---

<div class="post-metadata">

**Author:** ![CraigFeldspar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/craigfeldspar/32/45631_2.png) [@CraigFeldspar](https://forum.babylonjs.com/u/CraigFeldspar)\
**Post date:** [May 11, 2022, 7:11am UTC](https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197/3 "2022-05-11T07:11:48Z")

</div>

SSAO2 indeed leverages WebGL2 capacities, so it should be more performant than regular SSAO. For visual quality I’d say it depends on the number of samples that you use, for equal sample count SSAO might be on par with SSAO2, but since you’ll get better perf with the latter, you can push your sample count up.

---

<div class="post-metadata">

**Author:** ![travisvroman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/travisvroman/32/23859_2.png) [@travisvroman](https://forum.babylonjs.com/u/travisvroman)\
**Post date:** [May 11, 2022, 1:42pm UTC](https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197/4 "2022-05-11T13:42:34Z")

</div>

Great, thank you both. I appreciate it!

---

<div class="post-metadata">

**Author:** ![brightMoon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brightmoon/32/9959_2.png) [@brightMoon](https://forum.babylonjs.com/u/brightMoon)\
**Post date:** [May 7, 2024, 8:51am UTC](https://forum.babylonjs.com/t/ssaorenderingpipeline-vs-ssao2renderingpipeline/30197/5 "2024-05-07T08:51:18Z")

</div>

Suggest specifying the features being implemented using webgl2.0 in the documentation of SSAO2RenderingPipeline. Otherwise, we wouldn’t know the difference between SSAO2RenderingPipeline
