BabylonJS / BabylonNative

Build cross-platform native applications with the power of the Babylon.js JavaScript framework
MIT License
757 stars 131 forks source link

DEPTH_COMPONENT16 and render buffer #1166

Closed CedricGuillemet closed 1 year ago

CedricGuillemet commented 1 year ago

forum thread : https://forum.babylonjs.com/t/unsupported-texture-format-or-type-format-5-type-2/35694/3

A DEPTH_COMPONENT16 render buffer is created and it's currently unsupported by the engine.

Also, the RGBA16F format is not supported yet but it's quite easy to add.

bghgary commented 1 year ago

cc @PolygonalSun

PolygonalSun commented 1 year ago

Update: This issue is the reason why glTF extensions like iridescence and transmission aren't working in Babylon Native. The fix for this would involve updating the NativeEngine to override the updateRenderTargetTextureSampleCount function.

bghgary commented 1 year ago

The main issue is addressed. MSAA is not working with render targets which is a separate issue.