Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2018
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Shader "Vertex/VertexLit Colored Alpha" {
  2. Properties {
  3.     _Color ("Main Color", Color) = (1,1,1,1)
  4.     _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  5.     _BumpMap ("Illumin (A)", 2D) = "bump" {}
  6. }
  7.  
  8. SubShader {
  9.     ZWrite On
  10.     Alphatest Greater 0
  11.     Tags {Queue=Transparent}
  12.     Blend SrcAlpha OneMinusSrcAlpha
  13.     ColorMask RGB
  14.     Pass {
  15.         ColorMaterial AmbientAndDiffuse
  16.         Lighting On
  17.         SetTexture [_Bump] {
  18.             Combine texture * constant DOUBLE, previous * primary
  19.         }
  20.         SetTexture [_MainTex] {
  21.             constantColor [_Color]
  22.             Combine texture * primary DOUBLE, previous * constant
  23.         }      
  24.     }
  25.     Pass {
  26.         ColorMaterial AmbientAndDiffuse
  27.         Lighting On
  28.         SetTexture [_MainTex] {
  29.             constantColor [_Color]
  30.             Combine texture * constant DOUBLE, previous * texture
  31.         }
  32.        
  33.     }
  34. }
  35.  
  36. Fallback "Alpha/VertexLit", 1
  37. }
Advertisement
RAW Paste Data Copied
Advertisement