Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "Custom/Window Shader"
- {
- Properties
- {
- _MainColor ("Color", Color) = (1,1,1,1)
- _MainTex ("Diffuse", 2D) = "white" {}
- _RefTex ("Reflection", 2D) = "white" { TexGen SphereMap }
- }
- SubShader
- {
- Tags { "RenderType"="Transparent" "Queue"="Transparent"}
- Pass
- {
- Lighting off
- Blend SrcAlpha OneMinusSrcAlpha
- SetTexture[_MainTex]
- {
- constantColor[_MainColor]
- combine constant, one - texture
- }
- SetTexture[_RefTex] { combine texture * previous alpha }
- SetTexture[_RefTex]
- {
- constantColor[_MainColor]
- combine previous * constant
- }
- SetTexture[_MainTex]
- {
- constantColor[_MainColor]
- combine previous + texture, texture * constant
- }
- }
- }
- FallBack "Diffuse"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement