Hey guys,
I want to create a custom RenderTargetTexture of type BABYLON.Engine.TEXTUREFORMAT_LUMINANCE but it doesn't work. here's my code:
textureFormat is always 5 (probably TEXTUREFORMAT_RGBA), regardless of what I set it to be.
// Render target
var renderTarget = new BABYLON.RenderTargetTexture( "depth",
128, // res
scene,
false, // generateMipMaps
true, // doNotChangeAspectRatio
BABYLON.Engine.TEXTURETYPE_UNSIGNED_INT, // type
false, // isCube
BABYLON.Texture.BILINEAR_SAMPLINGMODE, // samplingMode
fa