RenderQueue

From Resonite Wiki
This article or section is a stub. You can help the Resonite wiki by expanding it.

RenderQueue is a property found on material components which controls when they are rendered. It corresponds directly to Unity's RenderQueue value and thus inherits its behaviors and quirks.

The default value of RenderQueue is -1, which means the engine will assign an appropriate queue based on the material's BlendMode, i.e. 2000 for Opaque, 2450 for Cutout, and 3000 for Transparent.

Materials with RenderQueue below or equal to 2500 are assumed to be opaque and are thus rendered front-to-back to avoid overdraw (geometry in already-rendered areas will be skipped due to ZWrite), while those above 2500 are assumed to be transparent and are thus rendered back-to-front to make them overlap correctly.

Unity assumes that all RenderQueue values are between 0 and 5000 inclusive. While other values are possible (within the bounds of a Short), their behavior is undefined and might change once Resonite transitions away from the Unity renderer.[1]

External links

References