Selzier

Double Sided Vertex Lit Transparent Cutout

Dec 5th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Shader "Baked Vertex Lighting/Baked Vertex Cutout No Culling 2"
  2. {
  3. Properties {
  4. _Color ("Main Color", Color) = (1,1,1,1)
  5. _SpecColor ("Spec Color", Color) = (1,1,1,1)
  6. _Emission ("Emmisive Color", Color) = (0,0,0,0)
  7. _Shininess ("Shininess", Range (0.01, 1)) = 0.7
  8. _MainTex ("Base (RGB)", 2D) = "white" {}
  9. _Cutoff ("Base Alpha cutoff", Range (.5,.9)) = .5
  10.  
  11. }
  12.  
  13. SubShader {
  14. Pass
  15. {
  16. AlphaTest GEqual [_Cutoff]
  17.  
  18. Cull off
  19.  
  20. Material {
  21. Shininess [_Shininess]
  22. Specular [_SpecColor]
  23. Emission [_Emission]
  24. }
  25. ColorMaterial AmbientAndDiffuse
  26. Lighting On
  27. SeperateSpecular On
  28. SetTexture [_MainTex] {
  29. Combine texture * primary, texture * primary
  30. // Combine texture , texture
  31.  
  32. }
  33. SetTexture [_MainTex] {
  34. constantColor [_Color]
  35. Combine previous * constant DOUBLE, previous * constant
  36. }
  37. }
  38. // Pixel lights
  39. // UsePass "Bumped Specular/PPL"
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment