MaskImage is only for 2D Images created with LoadImage/CreateImage.
For textures, you need to enable the mask flag (4) on LoadTexture/CreateTexture For a LoadTexture it will apply the mask only for Alpha pngs (it will split alpha : =>0.5 : Solid, <0.5 : not visible) or without alpha it will use the black (0,0,0) as mask.
Then, you can set the alpha of the pixel by hands using WritePixel/WritePixelFast on the TextureBuffer. You can also create your own function to maniputale the pixels and apply your own color mask
|