- Home /
Rendering using the Transparent queue
During profiling in the Unity editor, i see that rendering of the transparent queue takes significant amount of time:
My question is -- how does Unity determine which sprite is drawn in which queue? (i would like to minimize the number of objects in the transparent queue)
Answer by Dreamora · Jun 22, 2014 at 10:45 PM
The shaders used define in which queue an object is drawn. In case of sprites, all shaders offered render transparently, because they can only rely on the textures pixels to not draw a pixel within the geometry.
You would need to use a true 2D mesh modelled in a modelling software to have 2D without transparency unless its a opaque quad in which case you might need to write an own sprite shader. Doing so is quite easy, just download the builtin shaders (on the download page, follow the link to the old versions and you can find the latest versions on the next page), look at the sprite shaders and combine the sprite diffuse (required for atlas and preview especially) with the normal diffuse shader.
Your answer
Follow this Question
Related Questions
Strange artifacts in builds 0 Answers
Sequence of Sprite Rendering in Unity? 1 Answer
[SOLVED] Sprite showing up in "Scene", but not in "Game" 11 Answers
Sprite rendering problem 0 Answers