标签:style blog http color os strong io 2014
【Blending】
Blending is used to make transparent objects.
When graphics are rendered, after all shaders have executed and all textures have been applied, the pixels are written to the screen. How they are combined with what is already there is controlled by the Blend command.
[Syntax]
[Blend Operations]
[Blend factors]
[常用混合类型]
[Examples]
1、Here is a small example shader that adds a texture to whatever is on the screen already:
Shader "Simple Additive" { Properties { _MainTex ("Texture to blend", 2D) = "black" {} } SubShader { Tags { "Queue" = "Transparent" } Pass { Blend One One SetTexture [_MainTex] { combine texture } } } }
标签:style blog http color os strong io 2014
原文地址:http://www.cnblogs.com/tekkaman/p/3870039.html