Jump to content

Buran

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. I want to clone RenderTexture, so i can add new details to it with renderer, and also keep unchanged original. But when i try to render something on cloned RenderTexture, it becomes empty. Is it intended behavior? If so, how is it intended to be done? Make new RenderTexture, render original texture to it and then add details?
  2. Nevermind, it was just a coincidence. For some reason textures are rendered black half the time inside of loader.load callback method.
  3. I have a few images, which i need to combine and then store the result. As i understood, RenderTexture is just what i need. let provinceTexture = resources["province"].texture; let baseProvinceSprite = new PIXI.Sprite(provinceTexture); baseProvinceSprite.x = 0; baseProvinceSprite.y = 0; baseProvinceSprite.width = w; baseProvinceSprite.height = h; let terrainTexture = resources["grass"].texture; let terrainSprite = new PIXI.TilingSprite(terrainTexture, w, h); terrainSprite.mask = baseProvinceSprite; terrainSprite.x = 0; terrainSprite.y = 0; terrainSprite.width = w; terrain
×
×
  • Create New...