meshes can have multiple textures (to use them in custom shaders): Mesh:setTexture(texture,slot)
on the other hand in the wiki this is not the case for Bitmaps: Bitmap:setTexture(texture)
maybe the wiki is wrong? if not, can this feature be added to bitmaps too?
Comments
Likes: MoKaLux, vitalitymobile
Likes: vitalitymobile
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
I tried this code with latest changes:
Anyhow, can anybody (keszegh ) give a use case for such a need of having multiple textures for Pixels (we can parent multiple pixels if we need)? Maybe it's for saving memory or increasing speed or for normal maps, or shaders, or ... ?
Thank you
EDIT: silly me it was written in the wiki that slot is used with shader in the parameters . I made it more clear by adding a note in the description
EDIT2: added an example from the https://forum.giderosmobile.com/discussion/8671/lua-shader-question-how-to-read-and-write-pixel-info-from-texture OP question https://wiki.gideros.rocks/index.php/Pixel:setTexture, I could get a mask but not much else!
Likes: MoKaLux
https://forum.giderosmobile.com/discussion/comment/68068#Comment_68068
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game