Hi everybody,
it seems to be impossible to create a RenderTargetTexture (or potentially any Texture) with TEXTUREFORMAT_ALPHA. This can be verified by opening the Inspector in this minimal playground:
The format shows up as RGBA at Scene/Textures/rtt.
I think this happens due to the enum value of TEXTUREFORMAT_ALPHA being 0 and the constructor of Texture checking the format option for truthiness instead of nullishness at Babylon.js/packages/dev/core/src/Materials/Textures/texture.ts at 13d0e6df24ed2c4373c423ef186004c5a697a687 · BabylonJS/Babylon.js · GitHub
Is it worth opening a github issue or pull request for this?