Babylon.js icon indicating copy to clipboard operation
Babylon.js copied to clipboard

Creating depth/stencil texture does not support MSAA in WebGL.

Open Popov72 opened this issue 3 years ago • 5 comments

Try this PG: https://playground.babylonjs.com/#A56TVT#1

Look at the console log: there are some errors because the depth/stencil texture is not created as a MSAA texture.

Note that it is failing only in WebGL, it's ok in WebGPU.

Popov72 avatar Apr 25 '22 17:04 Popov72

I am pretty sure it has never been supported in our webgl support. Trying to look into what it would take to do so. Do you see it as a regression ? or I would move the issue to a feature request instead ?

sebavan avatar Apr 25 '22 18:04 sebavan

I think it can be moved in feature request indeed as it was never supported in WebGL (I looked at the file history of engine.renderTarget.ts to be sure it was not a regression I could have introduced!).

Popov72 avatar Apr 25 '22 18:04 Popov72

Just wondering when do you need this feature by ?

sebavan avatar Apr 25 '22 23:04 sebavan

It's not very important, I'm simply not enabling MSAA in my (upcoming) demo.

Popov72 avatar Apr 26 '22 10:04 Popov72

man! Can't wait to see it now :D

deltakosh avatar Apr 26 '22 15:04 deltakosh

Not supported by webgl

sebavan avatar Oct 24 '22 16:10 sebavan