Dalek Posted May 7, 2018 Share Posted May 7, 2018 Hi. I am using the sprite for some effect when I found that each sprite has two drawcalls. What is the perpose of the code below? engine.setDepthFunctionToLessOrEqual(); effect.setBool("alphaTest", true); engine.setColorWrite(false); engine.drawElementsType(Material.TriangleFillMode, 0, max * 6); engine.setColorWrite(true); effect.setBool("alphaTest", false); engine.setAlphaMode(Engine.ALPHA_COMBINE); engine.drawElementsType(Material.TriangleFillMode, 0, max * 6); engine.setAlphaMode(Engine.ALPHA_DISABLE); Why "engine.drawElementsType" is called twice? Quote Link to comment Share on other sites More sharing options...
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.