diff options
Diffstat (limited to 'unity_package/Assets/SteamVR/Resources/SteamVR_AlphaOut.shader')
-rw-r--r-- | unity_package/Assets/SteamVR/Resources/SteamVR_AlphaOut.shader | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/unity_package/Assets/SteamVR/Resources/SteamVR_AlphaOut.shader b/unity_package/Assets/SteamVR/Resources/SteamVR_AlphaOut.shader deleted file mode 100644 index b400354..0000000 --- a/unity_package/Assets/SteamVR/Resources/SteamVR_AlphaOut.shader +++ /dev/null @@ -1,46 +0,0 @@ -Shader "Custom/SteamVR_AlphaOut" { - Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } - - CGINCLUDE - - #include "UnityCG.cginc" - - sampler2D _MainTex; - - struct v2f { - float4 pos : SV_POSITION; - float2 tex : TEXCOORD0; - }; - - v2f vert(appdata_base v) { - v2f o; - o.pos = mul(UNITY_MATRIX_MVP, v.vertex); - o.tex = v.texcoord; - return o; - } - - float luminance(float3 color) - { - return 0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b; - } - - float4 frag(v2f i) : COLOR { - float4 color = tex2D(_MainTex, i.tex); - float a = saturate(color.a + luminance(color.rgb)); - return float4(a, a, a, a); - } - - ENDCG - - SubShader { - Pass { - ZTest Always Cull Off ZWrite Off - Fog { Mode Off } - - CGPROGRAM - #pragma vertex vert - #pragma fragment frag - ENDCG - } - } -} |