You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
5.7 KiB
113 lines
5.7 KiB
4 years ago
|
// Shader created with Shader Forge v1.37
|
||
|
// Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/
|
||
|
// Note: Manually altering this data may prevent you from opening it in Shader Forge
|
||
|
/*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:2,bsrc:3,bdst:7,dpts:2,wrdp:False,dith:0,atcv:False,rfrpo:True,rfrpn:Refraction,coma:15,ufog:True,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:9361,x:33209,y:32712,varname:node_9361,prsc:2|custl-878-OUT,alpha-9854-OUT;n:type:ShaderForge.SFN_Tex2d,id:5892,x:32490,y:32613,ptovrint:False,ptlb:node_5892,ptin:_node_5892,varname:node_5892,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,ntxv:0,isnm:False;n:type:ShaderForge.SFN_Multiply,id:878,x:32841,y:32804,varname:node_878,prsc:2|A-5892-RGB,B-6696-OUT,C-4711-RGB,D-1865-RGB;n:type:ShaderForge.SFN_VertexColor,id:4711,x:32490,y:32830,varname:node_4711,prsc:2;n:type:ShaderForge.SFN_Color,id:1865,x:32490,y:33005,ptovrint:False,ptlb:node_1865,ptin:_node_1865,varname:node_1865,prsc:2,glob:False,taghide:False,taghdr:True,tagprd:False,tagnsco:False,tagnrm:False,c1:0.5,c2:0.5,c3:0.5,c4:1;n:type:ShaderForge.SFN_ValueProperty,id:6696,x:32490,y:33242,ptovrint:False,ptlb:node_6696,ptin:_node_6696,varname:node_6696,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,v1:2;n:type:ShaderForge.SFN_Multiply,id:9854,x:32809,y:32564,varname:node_9854,prsc:2|A-5892-A,B-4711-A;proporder:5892-1865-6696;pass:END;sub:END;*/
|
||
|
|
||
|
Shader "Shader Forge/lizi_bland" {
|
||
|
Properties {
|
||
|
_node_5892 ("node_5892", 2D) = "white" {}
|
||
|
[HDR]_node_1865 ("node_1865", Color) = (0.5,0.5,0.5,1)
|
||
|
_node_6696 ("node_6696", Float ) = 2
|
||
|
[HideInInspector]_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
|
||
|
}
|
||
|
SubShader {
|
||
|
Tags {
|
||
|
"IgnoreProjector"="True"
|
||
|
"Queue"="Transparent"
|
||
|
"RenderType"="Transparent"
|
||
|
}
|
||
|
Pass {
|
||
|
Name "FORWARD"
|
||
|
Tags {
|
||
|
"LightMode"="ForwardBase"
|
||
|
}
|
||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||
|
Cull Off
|
||
|
ZWrite Off
|
||
|
|
||
|
CGPROGRAM
|
||
|
#pragma vertex vert
|
||
|
#pragma fragment frag
|
||
|
#define UNITY_PASS_FORWARDBASE
|
||
|
#include "UnityCG.cginc"
|
||
|
#pragma multi_compile_fwdbase
|
||
|
#pragma multi_compile_fog
|
||
|
#pragma only_renderers d3d9 d3d11 glcore gles
|
||
|
#pragma target 3.0
|
||
|
uniform sampler2D _node_5892; uniform float4 _node_5892_ST;
|
||
|
uniform float4 _node_1865;
|
||
|
uniform float _node_6696;
|
||
|
struct VertexInput {
|
||
|
float4 vertex : POSITION;
|
||
|
float2 texcoord0 : TEXCOORD0;
|
||
|
float4 vertexColor : COLOR;
|
||
|
};
|
||
|
struct VertexOutput {
|
||
|
float4 pos : SV_POSITION;
|
||
|
float2 uv0 : TEXCOORD0;
|
||
|
float4 vertexColor : COLOR;
|
||
|
UNITY_FOG_COORDS(1)
|
||
|
};
|
||
|
VertexOutput vert (VertexInput v) {
|
||
|
VertexOutput o = (VertexOutput)0;
|
||
|
o.uv0 = v.texcoord0;
|
||
|
o.vertexColor = v.vertexColor;
|
||
|
o.pos = UnityObjectToClipPos( v.vertex );
|
||
|
UNITY_TRANSFER_FOG(o,o.pos);
|
||
|
return o;
|
||
|
}
|
||
|
float4 frag(VertexOutput i, float facing : VFACE) : COLOR {
|
||
|
float isFrontFace = ( facing >= 0 ? 1 : 0 );
|
||
|
float faceSign = ( facing >= 0 ? 1 : -1 );
|
||
|
////// Lighting:
|
||
|
float4 _node_5892_var = tex2D(_node_5892,TRANSFORM_TEX(i.uv0, _node_5892));
|
||
|
float3 finalColor = (_node_5892_var.rgb*_node_6696*i.vertexColor.rgb*_node_1865.rgb);
|
||
|
fixed4 finalRGBA = fixed4(finalColor,(_node_5892_var.a*i.vertexColor.a));
|
||
|
UNITY_APPLY_FOG(i.fogCoord, finalRGBA);
|
||
|
return finalRGBA;
|
||
|
}
|
||
|
ENDCG
|
||
|
}
|
||
|
Pass {
|
||
|
Name "ShadowCaster"
|
||
|
Tags {
|
||
|
"LightMode"="ShadowCaster"
|
||
|
}
|
||
|
Offset 1, 1
|
||
|
Cull Off
|
||
|
|
||
|
CGPROGRAM
|
||
|
#pragma vertex vert
|
||
|
#pragma fragment frag
|
||
|
#define UNITY_PASS_SHADOWCASTER
|
||
|
#include "UnityCG.cginc"
|
||
|
#include "Lighting.cginc"
|
||
|
#pragma fragmentoption ARB_precision_hint_fastest
|
||
|
#pragma multi_compile_shadowcaster
|
||
|
#pragma multi_compile_fog
|
||
|
#pragma only_renderers d3d9 d3d11 glcore gles
|
||
|
#pragma target 3.0
|
||
|
struct VertexInput {
|
||
|
float4 vertex : POSITION;
|
||
|
};
|
||
|
struct VertexOutput {
|
||
|
V2F_SHADOW_CASTER;
|
||
|
};
|
||
|
VertexOutput vert (VertexInput v) {
|
||
|
VertexOutput o = (VertexOutput)0;
|
||
|
o.pos = UnityObjectToClipPos( v.vertex );
|
||
|
TRANSFER_SHADOW_CASTER(o)
|
||
|
return o;
|
||
|
}
|
||
|
float4 frag(VertexOutput i, float facing : VFACE) : COLOR {
|
||
|
float isFrontFace = ( facing >= 0 ? 1 : 0 );
|
||
|
float faceSign = ( facing >= 0 ? 1 : -1 );
|
||
|
SHADOW_CASTER_FRAGMENT(i)
|
||
|
}
|
||
|
ENDCG
|
||
|
}
|
||
|
}
|
||
|
FallBack "Diffuse"
|
||
|
CustomEditor "ShaderForgeMaterialInspector"
|
||
|
}
|