unity shader render queue

https://docs.unity3d.com/Manual/SL-SubShaderTags.html

ShaderLab: SubShader Tags

Subshaders use tags to tell how and when they expect to be rendered to the rendering
engine.

Syntax
Tags { “TagName1” = “Value1” “TagName2” = “Value2” }

SubShader
 {
	Tags { "Queue" = "Transparent"}

這個queue爲啥要寫在SubShader裏面呢?因爲不可能讓同一個SubShader中的不同pass,放在不同的隊列中繪製。
如果不指定,那麼這個SubShader的queue默認值是2000。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章