TeXiao02.shader 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Shader created with Shader Forge v1.37
  2. // Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/
  3. // Note: Manually altering this data may prevent you from opening it in Shader Forge
  4. /*SF_DATA;ver:1.37;sub:START;pass:START;ps:flbk:,iptp:0,cusa:False,bamd:0,cgin:,lico:1,lgpr:1,limd:0,spmd:1,trmd:0,grmd:0,uamb:True,mssp:True,bkdf:False,hqlp:False,rprd:False,enco:False,rmgx:True,imps:True,rpth:0,vtps:0,hqsc:True,nrmq:1,nrsp:0,vomd:0,spxs:False,tesm:0,olmd:1,culm:0,bsrc:0,bdst:0,dpts:2,wrdp:False,dith:0,atcv:False,rfrpo:True,rfrpn:Refraction,coma:15,ufog:False,aust:True,igpj:True,qofs:0,qpre:3,rntp:2,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg:0.5,fgcb:0.5,fgca:1,fgde:0.01,fgrn:0,fgrf:300,stcl:False,stva:128,stmr:255,stmw:255,stcp:6,stps:0,stfa:0,stfz:0,ofsf:0,ofsu:0,f2p0:False,fnsp:False,fnfb:False,fsmp:False;n:type:ShaderForge.SFN_Final,id:3138,x:33050,y:32705,varname:node_3138,prsc:2|emission-3564-OUT,alpha-7009-A;n:type:ShaderForge.SFN_Color,id:7241,x:31850,y:32121,ptovrint:False,ptlb:Color,ptin:_Color,varname:node_7241,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,c1:0.07843138,c2:0.3921569,c3:0.7843137,c4:1;n:type:ShaderForge.SFN_Tex2d,id:966,x:31604,y:32286,ptovrint:False,ptlb:WenLi,ptin:_WenLi,varname:node_966,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,ntxv:0,isnm:False;n:type:ShaderForge.SFN_Tex2d,id:7009,x:31432,y:32609,ptovrint:False,ptlb:node_7009,ptin:_node_7009,varname:node_7009,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,ntxv:0,isnm:False;n:type:ShaderForge.SFN_Slider,id:8079,x:31207,y:32871,ptovrint:False,ptlb:node_8079,ptin:_node_8079,varname:node_8079,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,min:0,cur:0,max:5;n:type:ShaderForge.SFN_Multiply,id:9231,x:31731,y:32946,varname:node_9231,prsc:2|A-7009-RGB,B-8079-OUT;n:type:ShaderForge.SFN_Multiply,id:8505,x:32358,y:32394,varname:node_8505,prsc:2|A-4461-OUT,B-9231-OUT;n:type:ShaderForge.SFN_Multiply,id:4461,x:32185,y:32225,varname:node_4461,prsc:2|A-7241-RGB,B-966-RGB,C-7507-OUT;n:type:ShaderForge.SFN_Slider,id:7507,x:31604,y:32496,ptovrint:False,ptlb:WenLi_TEX,ptin:_WenLi_TEX,varname:node_7507,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,min:0,cur:0,max:5;n:type:ShaderForge.SFN_Add,id:3564,x:32730,y:32452,varname:node_3564,prsc:2|A-8505-OUT,B-10-OUT;n:type:ShaderForge.SFN_Slider,id:8928,x:32083,y:32907,ptovrint:False,ptlb:node_8928,ptin:_node_8928,varname:node_8928,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,min:0,cur:1,max:2;n:type:ShaderForge.SFN_Color,id:5827,x:32161,y:32676,ptovrint:False,ptlb:node_5827,ptin:_node_5827,varname:node_5827,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,c1:0.5,c2:0.5,c3:0.5,c4:1;n:type:ShaderForge.SFN_Multiply,id:10,x:32459,y:32598,varname:node_10,prsc:2|A-7009-RGB,B-5827-RGB,C-8928-OUT;proporder:7241-966-7009-8079-7507-8928-5827;pass:END;sub:END;*/
  5. Shader "LuoYeDaShi/TeXiao02" {
  6. Properties {
  7. _Color ("Color", Color) = (0.07843138,0.3921569,0.7843137,1)
  8. _WenLi ("WenLi", 2D) = "white" {}
  9. _node_7009 ("node_7009", 2D) = "white" {}
  10. _node_8079 ("node_8079", Range(0, 5)) = 0
  11. _WenLi_TEX ("WenLi_TEX", Range(0, 5)) = 0
  12. _node_8928 ("node_8928", Range(0, 2)) = 1
  13. _node_5827 ("node_5827", Color) = (0.5,0.5,0.5,1)
  14. [HideInInspector]_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
  15. }
  16. SubShader {
  17. Tags {
  18. "IgnoreProjector"="True"
  19. "Queue"="Transparent"
  20. "RenderType"="Transparent"
  21. }
  22. Pass {
  23. Name "FORWARD"
  24. Tags {
  25. "LightMode"="ForwardBase"
  26. }
  27. Blend One One
  28. ZWrite Off
  29. CGPROGRAM
  30. #pragma vertex vert
  31. #pragma fragment frag
  32. #define UNITY_PASS_FORWARDBASE
  33. #include "UnityCG.cginc"
  34. #pragma multi_compile_fwdbase
  35. #pragma only_renderers d3d9 d3d11 glcore gles gles3 metal d3d11_9x xboxone n3ds wiiu
  36. #pragma target 3.0
  37. uniform float4 _Color;
  38. uniform sampler2D _WenLi; uniform float4 _WenLi_ST;
  39. uniform sampler2D _node_7009; uniform float4 _node_7009_ST;
  40. uniform float _node_8079;
  41. uniform float _WenLi_TEX;
  42. uniform float _node_8928;
  43. uniform float4 _node_5827;
  44. struct VertexInput {
  45. float4 vertex : POSITION;
  46. float2 texcoord0 : TEXCOORD0;
  47. };
  48. struct VertexOutput {
  49. float4 pos : SV_POSITION;
  50. float2 uv0 : TEXCOORD0;
  51. };
  52. VertexOutput vert (VertexInput v) {
  53. VertexOutput o = (VertexOutput)0;
  54. o.uv0 = v.texcoord0;
  55. o.pos = UnityObjectToClipPos( v.vertex );
  56. return o;
  57. }
  58. float4 frag(VertexOutput i) : COLOR {
  59. ////// Lighting:
  60. ////// Emissive:
  61. float4 _WenLi_var = tex2D(_WenLi,TRANSFORM_TEX(i.uv0, _WenLi));
  62. float4 _node_7009_var = tex2D(_node_7009,TRANSFORM_TEX(i.uv0, _node_7009));
  63. float3 emissive = (((_Color.rgb*_WenLi_var.rgb*_WenLi_TEX)*(_node_7009_var.rgb*_node_8079))+(_node_7009_var.rgb*_node_5827.rgb*_node_8928));
  64. float3 finalColor = emissive;
  65. return fixed4(finalColor,_node_7009_var.a);
  66. }
  67. ENDCG
  68. }
  69. }
  70. FallBack "Diffuse"
  71. CustomEditor "ShaderForgeMaterialInspector"
  72. }