16 bit heightmap support

I’ve been looking at the MeshBuilder source code and noticed that a color filter is applied to the heightmap, along with RGB channels being divided by 255 (8-bit conversion I’m guessing). Does Babylon support 16 bit greyscale rasters for displacement, or do I have to modifying the CreateGroundFromHeightmap OG code myself?


You will have to create by yourself or even better tweak the current code to support it through a parameter and do a PR to merge it :slight_smile:

1 Like

Would I just divide the RGBA variables by 65536.0, or does the color filter need adjusting too?

I think dividing should suffice

1 Like