源战役客户端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

112 wiersze
1.9 KiB

1 miesiąc temu
  1. Shader "T4MShaders/ShaderModel1/T4M 2 Textures Auto BeastLM 2DrawCall" {
  2. Properties {
  3. _Splat0 ("Layer1 (RGB)", 2D) = "white" {}
  4. _Splat1 ("Layer2 (RGB)", 2D) = "white" {}
  5. _Control ("Mask (RGB)", 2D) = "white" {}
  6. _MainTex ("Never Used", 2D) = "white" {}
  7. }
  8. SubShader {
  9. Tags { "RenderType"="Opaque" }
  10. LOD 100
  11. Pass {
  12. Tags { "LightMode" = "Vertex" }
  13. Material {
  14. Diffuse (1,1,1,1)
  15. Ambient (1,1,1,1)
  16. }
  17. Lighting On
  18. SetTexture [_Splat0]
  19. SetTexture [_Control]
  20. {
  21. combine previous, texture
  22. }
  23. SetTexture [_Splat1]
  24. {
  25. combine texture lerp(previous) previous Double
  26. }
  27. SetTexture [_Splat0]{
  28. combine previous * primary
  29. }
  30. }
  31. Pass {
  32. Tags { "LightMode" = "VertexLM" }
  33. Lighting Off
  34. BindChannels {
  35. Bind "Vertex", vertex
  36. Bind "normal", normal
  37. Bind "texcoord1", texcoord0 // lightmap uses 2nd uv
  38. }
  39. SetTexture [unity_Lightmap] {
  40. matrix [unity_LightmapMatrix]
  41. combine texture
  42. }
  43. }
  44. Pass {
  45. Tags { "LightMode" = "VertexLM" }
  46. Blend DstColor SrcColor
  47. Lighting Off
  48. SetTexture [_Splat0]
  49. SetTexture [_Control]
  50. {
  51. combine previous, texture
  52. }
  53. SetTexture [_Splat1]
  54. {
  55. combine texture lerp(previous) previous
  56. }
  57. }
  58. Pass {
  59. Tags { "LightMode" = "VertexLMRGBM" }
  60. Lighting Off
  61. BindChannels {
  62. Bind "Vertex", vertex
  63. Bind "normal", normal
  64. Bind "texcoord1", texcoord0 // lightmap uses 2nd uv
  65. Bind "texcoord1", texcoord1 // unused
  66. Bind "texcoord", texcoord2 // main uses 1st uv
  67. }
  68. SetTexture [unity_Lightmap] {
  69. matrix [unity_LightmapMatrix]
  70. combine texture
  71. }
  72. }
  73. Pass {
  74. Tags { "LightMode" = "VertexLMRGBM" }
  75. Blend DstColor SrcColor
  76. Lighting Off
  77. SetTexture [_Splat0]
  78. SetTexture [_Control]
  79. {
  80. combine previous, texture
  81. }
  82. SetTexture [_Splat1]
  83. {
  84. combine texture lerp(previous) previous
  85. }
  86. }
  87. }
  88. }