TA/Unity2012. 5. 21. 14:14
  1. hader "Mobile/BackgroundQueueAdditive"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (.5,.5,.5,0)
  6. _EnvMap ("EnvMap", 2D) = "black" { TexGen SphereMap }
  7. }
  8. Category
  9. {
  10. Tags { "Queue"="Background" "IgnoreProjector" = "True" "RenderType"="Background"}
  11. //SeparateSpecular On
  12. Lighting Off
  13. Zwrite off
  14. Fog { Mode Off }
  15. //Ztest Always
  16. //Cull off //Will Show back thorugh front
  17. Blend One One // additive
  18. //Blend One OneMinusSrcColor // soft additive
  19. //Blend SrcAlpha OneMinusSrcAlpha // real alpha blending
  20. SubShader
  21. {
  22. Pass
  23. {
  24. SetTexture [_EnvMap]
  25. {
  26. combine texture
  27. }
  28. SetTexture [_EnvMap]
  29. {
  30. constantColor [_Color]
  31. Combine previous * constant DOUBLE, previous * constant
  32. }
  33. }
  34. }
  35. }
  36. }

'TA > Unity' 카테고리의 다른 글

Blending modes..참고 자료  (0) 2012.06.08
기초적인 조명쉐이더  (0) 2012.06.08
정 반사광  (0) 2012.06.08
unity shader 3가지 방식 정리  (0) 2012.06.01
Unity Mobile Shader  (0) 2012.05.21
Posted by 프리랜서 디자이너