Looks like SSAO2RenderingPipeline property .textureSamples has no effect in version 4.2. There are jaggies regardless number of samples (see image below). Version 4.1 provides almost no artifacts. There are no jaggies w/o ssao.
Hello @val,
Since you use prepassRenderer (last param set to false), the imageprocessingpostprocess texture must be multisampled.
In other terms, you have to use this :
scene.enablePrePassRenderer().samples = 4;
@deltakosh I think we should add this in the doc and/or do something with the prepass post process when SSAO2’s textureSample property is altered
And the text is something like this:
“Note: it has no effect when parameter .forceGeometryBuffer is set to false in the constructor. Use BABYLON.Scene.enablePrePassRenderer().samples = 4 to enable multi-sampling.”