Jump to content

Draw group to image WebGL problem


FreeS
 Share

Recommended Posts

Hi,

I need to draw some group in to the image to use it later as other images loaded by loader.

I do it this way:
 

var obj = this.game.make.group();

//// Add Some sprites to this group

var objTexture = obj.generateTexture();

this.game.world.remove(obj, true);

obj = null;

this.game.cache.addImage(texturename, null, objTexture.baseTexture.source);

objTexture.destroy();

All works good on CANVAS renderer, but fail on WebGL. How can I do it with WebGL ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...