diff Orchestland/Assets/LeapMotion/Shaders/RimShading.shader @ 1:f7675884f2a1

Add Orchestland project
author Daiki OYAKAWA <e135764@ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2015 23:09:20 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Orchestland/Assets/LeapMotion/Shaders/RimShading.shader	Fri Jul 17 23:09:20 2015 +0900
@@ -0,0 +1,32 @@
+Shader "LeapMotion/Rim Light Specular With Alpha" {
+  Properties {
+    _Color ("Main Color", Color) = (1,1,1,1)
+    _MainTex ("Base (RGB) Transparency (A)", 2D) = "white" {}
+    _Reflections ("Base (RGB) Gloss (A)", Cube) = "skybox" { TexGen CubeReflect }
+  }
+  SubShader {
+    Tags { "Queue" = "Transparent" }
+    Pass {
+      Blend SrcAlpha OneMinusSrcAlpha
+        Material {
+          Diffuse [_Color]
+        }
+      Lighting On
+        SetTexture [_MainTex] {
+          combine texture * primary double, texture * primary
+        }
+    }
+    Pass {
+      Blend One One
+        Material {
+          Diffuse [_Color]
+        }
+      Lighting On
+        SetTexture [_Reflections] {
+          combine texture
+            Matrix [_Reflection]
+        }
+    }
+  }
+  Fallback "VertexLit"
+}