Posted April 10, 20214 yr This may be a simple question, but how do I stack two TextureAtlasSprites A and B to generate a new TextureAtlasSprite? In other words, the base A is overwritten with pixels other than the transparent part of B.
April 10, 20214 yr If you want to do this for an item you can just make a layered model. Look into spawneggs json files.
April 10, 20214 yr Author Looking at the ItemLayerModel, it seems that each pixel of the texture is overwritten and generated as a quad, but in the ItemModelGenerator rendering the spawnegg item, simply add the quad of the upper layer to the quad of the lower layer. It looks like it's being returned in a list. Is the transparent part overwritten just by adding a Quad with the same shape but a different texture later, like the latter?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.