Hello PluginCafe!
I hope the title is self-explanatory.
Unfortunately, there is almost 0 info about ShaderData plugins on the forum.
It is worth mentioning that I already figured out how to load textures into Xbitmap from the disk, but this is not exactly what I need.
Currently, I'm trying to somehow load Pre-Defined Bitmap image Xbitmap (or maybe I have to load it into Xbase) but with no luck.
def InitRender(self, sh, irs) :
bmp = (c4d.bitmaps.InitResourceBitmap(c4d.RESOURCEIMAGE_OK))
self.texture = c4d.BaseShader(c4d.Xbitmap)
# Not sure but if I'm doing this correctly but probably here I need to somehow load my bmp.
self.texture.InitRender(irs)
return c4d.INITRENDERRESULT_OK
def FreeRender(self, sh) :
self.texture.FreeRender()
self.texture = None
def Output(self, sh, cd) :
res = self.texture.Sample(cd)
return res