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
Thank you
EDIT: silly me it was written in the wiki that slot is used with shader in the parameters
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