일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- Shader
- ngui
- 쉘
- ubuntu
- SSH
- dataframe
- sql
- python
- pi
- pandas
- with
- postgresql
- expect
- sqlite
- null
- DROP
- FIND
- Eclipse
- 배열
- c++11
- mysql
- Unity
- conda
- List
- C++
- awk
- if
- boost
- autovacuum
- SVN
Archives
- Today
- Total
その先にあるもの…
ShaderLab: SubShader Tags { Queue } 본문
http://docs.unity3d.com/Manual/SL-SubshaderTags.html
Rendering Order - Queue tag
Background
- this queue is rendered before any others. You’d typically use this for things that really need to be in the background.render Geometry
(default) - this is used for most objects. Opaque geometry uses this queue.AlphaTest
- alpha tested geometryuses this queue. It’s a separate queue fromGeometry
one since it’s more efficient to render alpha-tested objects after all solid ones are drawn.Transparent
- thisrender queue is rendered after Geometry andAlphaTest
, in back-to-front order. Anything alpha-blended (i.e.shaders that don’t write to depth buffer) should go here (glass, particle effects).Overlay
- thisrender queue is meant for overlay effects. Anything rendered last should go here (e.g.lens flares).
For special uses in-between queues can be used. Internally each queue is represented by integer index; shader uses a queue like this:
Background
is 1000, Geometry
is 2000, AlphaTest
is 2450, Transparent
is 3000 and Overlay
is 4000. If a Tags { "Queue" = "Geometry+1" }
'프로그래밍 > Unity' 카테고리의 다른 글
animation때문에 scale이 변하지 않을 때 (0) | 2015.04.22 |
---|---|
Defines (0) | 2015.04.14 |
NGUI에 Fx 렌더링 (0) | 2015.04.01 |
Build error: The type or namespace name 'UnityEditor' could not be found. (0) | 2015.03.26 |
AnimatorStateInfo (0) | 2015.03.12 |
Comments