Peter Bay Bastian
7 年前
当前提交
2dacb47d
共有 5 个文件被更改,包括 193 次插入 和 179 次删除
-
92ShaderTemplates/Add.ShaderGraph.shader
-
108ShaderTemplates/AddSubGraph.ShaderGraph.shader
-
72ShaderTemplates/Cracks.ShaderGraph.shader
-
92ShaderTemplates/Multiply.ShaderGraph.shader
-
8ShaderTemplates/TextureSample.ShaderGraph.shader
|
|||
Shader "Add" |
|||
Shader "Add" |
|||
Properties |
|||
{ |
|||
Properties |
|||
{ |
|||
} |
|||
|
|||
SubShader |
|||
} |
|||
|
|||
SubShader |
|||
Tags |
|||
{ |
|||
"RenderType"="Opaque" |
|||
"Queue"="Geometry" |
|||
} |
|||
Tags |
|||
{ |
|||
"RenderType"="Opaque" |
|||
"Queue"="Geometry" |
|||
} |
|||
Blend One Zero |
|||
Blend One Zero |
|||
Cull Back |
|||
Cull Back |
|||
ZTest LEqual |
|||
ZTest LEqual |
|||
ZWrite On |
|||
ZWrite On |
|||
LOD 200 |
|||
|
|||
CGPROGRAM |
|||
#pragma target 3.0 |
|||
#pragma surface surf Standard vertex:vert |
|||
#pragma glsl |
|||
#pragma debug |
|||
LOD 200 |
|||
CGPROGRAM |
|||
#pragma target 3.0 |
|||
#pragma surface surf Standard vertex:vert |
|||
#pragma glsl |
|||
#pragma debug |
|||
void Unity_Add_float(float4 first, float4 second, out float4 result) |
|||
{ |
|||
result = first + second; |
|||
} |
|||
void Unity_Add_float(float4 first, float4 second, out float4 result) |
|||
{ |
|||
result = first + second; |
|||
} |
|||
struct Input |
|||
{ |
|||
float4 color : COLOR; |
|||
}; |
|||
struct Input |
|||
{ |
|||
float4 color : COLOR; |
|||
void vert (inout appdata_full v, out Input o) |
|||
{ |
|||
UNITY_INITIALIZE_OUTPUT(Input,o); |
|||
}; |
|||
} |
|||
|
|||
void surf (Input IN, inout SurfaceOutputStandard o) |
|||
{ |
|||
float4 Color_Color_F01F05F2_Uniform = float4 (0.1172414, 1, 0, 0); |
|||
float4 Color_Color_3FAAF5EA_Uniform = float4 (0.01912789, -0.005136251, 0.6985294, 0); |
|||
float4 Add_1ABB2997_result; |
|||
Unity_Add_float(Color_Color_F01F05F2_Uniform, Color_Color_3FAAF5EA_Uniform, Add_1ABB2997_result); |
|||
o.Emission = Add_1ABB2997_result; |
|||
void vert (inout appdata_full v, out Input o) |
|||
{ |
|||
UNITY_INITIALIZE_OUTPUT(Input,o); |
|||
|
|||
} |
|||
|
|||
void surf (Input IN, inout SurfaceOutputStandard o) |
|||
{ |
|||
float4 Color_Color_F01F05F2_Uniform = float4 (0.1172414, 1, 0, 0); |
|||
float4 Color_Color_3FAAF5EA_Uniform = float4 (0.01912789, -0.005136251, 0.6985294, 0); |
|||
float4 Add_1ABB2997_result; |
|||
Unity_Add_float(Color_Color_F01F05F2_Uniform, Color_Color_3FAAF5EA_Uniform, Add_1ABB2997_result); |
|||
o.Emission = Add_1ABB2997_result; |
|||
} |
|||
ENDCG |
|||
} |
|||
ENDCG |
|||
FallBack "Diffuse" |
|||
CustomEditor "LegacyIlluminShaderGUI" |
|||
FallBack "Diffuse" |
|||
CustomEditor "LegacyIlluminShaderGUI" |
|||
} |
|
|||
Shader "AddSubGraph" |
|||
Shader "AddSubGraph" |
|||
Properties |
|||
{ |
|||
Properties |
|||
{ |
|||
} |
|||
|
|||
SubShader |
|||
} |
|||
|
|||
SubShader |
|||
Tags |
|||
{ |
|||
"RenderType"="Opaque" |
|||
"Queue"="Geometry" |
|||
} |
|||
Tags |
|||
{ |
|||
"RenderType"="Opaque" |
|||
"Queue"="Geometry" |
|||
} |
|||
Blend One Zero |
|||
Blend One Zero |
|||
Cull Back |
|||
Cull Back |
|||
ZTest LEqual |
|||
ZTest LEqual |
|||
ZWrite On |
|||
ZWrite On |
|||
LOD 200 |
|||
|
|||
CGPROGRAM |
|||
#pragma target 3.0 |
|||
#pragma surface surf Standard vertex:vert |
|||
#pragma glsl |
|||
#pragma debug |
|||
LOD 200 |
|||
CGPROGRAM |
|||
#pragma target 3.0 |
|||
#pragma surface surf Standard vertex:vert |
|||
#pragma glsl |
|||
#pragma debug |
|||
void Unity_Add_float(float4 first, float4 second, out float4 result) |
|||
{ |
|||
result = first + second; |
|||
} |
|||
void Unity_Add_float(float4 first, float4 second, out float4 result) |
|||
{ |
|||
result = first + second; |
|||
} |
|||
struct Input |
|||
{ |
|||
float4 color : COLOR; |
|||
}; |
|||
struct Input |
|||
{ |
|||
float4 color : COLOR; |
|||
void vert (inout appdata_full v, out Input o) |
|||
{ |
|||
UNITY_INITIALIZE_OUTPUT(Input,o); |
|||
}; |
|||
} |
|||
|
|||
void surf (Input IN, inout SurfaceOutputStandard o) |
|||
{ |
|||
float4 Color_Color_FD942667_Uniform = float4 (1, 0, 0, 0); |
|||
float4 Color_Color_C568FE2A_Uniform = float4 (0.1586208, 1, 0, 0); |
|||
// Subgraph for node SubGraph_F6FDDDC0 |
|||
float4 SubGraph_F6FDDDC0_Output1 = 0; |
|||
{ |
|||
float4 SubGraphInputs_23A80546_Input1 = Color_Color_FD942667_Uniform; |
|||
float4 SubGraphInputs_23A80546_Input2 = Color_Color_C568FE2A_Uniform; |
|||
float4 Add_B9CA3569_result; |
|||
Unity_Add_float(SubGraphInputs_23A80546_Input1, SubGraphInputs_23A80546_Input2, Add_B9CA3569_result); |
|||
SubGraph_F6FDDDC0_Output1 = Add_B9CA3569_result; |
|||
} |
|||
// Subgraph ends |
|||
o.Emission = SubGraph_F6FDDDC0_Output1; |
|||
void vert (inout appdata_full v, out Input o) |
|||
{ |
|||
UNITY_INITIALIZE_OUTPUT(Input,o); |
|||
} |
|||
ENDCG |
|||
} |
|||
|
|||
void surf (Input IN, inout SurfaceOutputStandard o) |
|||
{ |
|||
float4 Color_Color_FD942667_Uniform = float4 (1, 0, 0, 0); |
|||
float4 Color_Color_C568FE2A_Uniform = float4 (0.1586208, 1, 0, 0); |
|||
// Subgraph for node SubGraph_F6FDDDC0 |
|||
float4 SubGraph_F6FDDDC0_Output1 = 0; |
|||
{ |
|||
float4 SubGraphInputs_23A80546_Input1 = Color_Color_FD942667_Uniform; |
|||
float4 SubGraphInputs_23A80546_Input2 = Color_Color_C568FE2A_Uniform; |
|||
float4 Add_B9CA3569_result; |
|||
Unity_Add_float(SubGraphInputs_23A80546_Input1, SubGraphInputs_23A80546_Input2, Add_B9CA3569_result); |
|||
SubGraph_F6FDDDC0_Output1 = Add_B9CA3569_result; |
|||
} |
|||
// Subgraph ends |
|||
o.Emission = SubGraph_F6FDDDC0_Output1; |
|||
|
|||
} |
|||
ENDCG |
|||
FallBack "Diffuse" |
|||
CustomEditor "LegacyIlluminShaderGUI" |
|||
FallBack "Diffuse" |
|||
CustomEditor "LegacyIlluminShaderGUI" |
|||
} |
|
|||
Shader "Multiply" |
|||
Shader "Multiply" |
|||
Properties |
|||
{ |
|||
Properties |
|||
{ |
|||
} |
|||
|
|||
SubShader |
|||
} |
|||
|
|||
SubShader |
|||
Tags |
|||
{ |
|||
"RenderType"="Opaque" |
|||
"Queue"="Geometry" |
|||
} |
|||
Tags |
|||
{ |
|||
"RenderType"="Opaque" |
|||
"Queue"="Geometry" |
|||
} |
|||
Blend One Zero |
|||
Blend One Zero |
|||
Cull Back |
|||
Cull Back |
|||
ZTest LEqual |
|||
ZTest LEqual |
|||
ZWrite On |
|||
ZWrite On |
|||
LOD 200 |
|||
|
|||
CGPROGRAM |
|||
#pragma target 3.0 |
|||
#pragma surface surf Standard vertex:vert |
|||
#pragma glsl |
|||
#pragma debug |
|||
LOD 200 |
|||
CGPROGRAM |
|||
#pragma target 3.0 |
|||
#pragma surface surf Standard vertex:vert |
|||
#pragma glsl |
|||
#pragma debug |
|||
void Unity_Multiply_float(float4 first, float4 second, out float4 result) |
|||
{ |
|||
result = first * second; |
|||
} |
|||
void Unity_Multiply_float(float4 first, float4 second, out float4 result) |
|||
{ |
|||
result = first * second; |
|||
} |
|||
struct Input |
|||
{ |
|||
float4 color : COLOR; |
|||
}; |
|||
struct Input |
|||
{ |
|||
float4 color : COLOR; |
|||
void vert (inout appdata_full v, out Input o) |
|||
{ |
|||
UNITY_INITIALIZE_OUTPUT(Input,o); |
|||
}; |
|||
} |
|||
|
|||
void surf (Input IN, inout SurfaceOutputStandard o) |
|||
{ |
|||
float4 Color_Color_E181B4C8_Uniform = float4 (1.022059, 1.022059, 1.022059, 0); |
|||
float4 Color_Color_8AFF9DED_Uniform = float4 (1.007353, -0.01481403, -0.01481403, 0); |
|||
float4 Multiply_91E1EE9F_result; |
|||
Unity_Multiply_float(Color_Color_E181B4C8_Uniform, Color_Color_8AFF9DED_Uniform, Multiply_91E1EE9F_result); |
|||
o.Emission = Multiply_91E1EE9F_result; |
|||
void vert (inout appdata_full v, out Input o) |
|||
{ |
|||
UNITY_INITIALIZE_OUTPUT(Input,o); |
|||
|
|||
} |
|||
|
|||
void surf (Input IN, inout SurfaceOutputStandard o) |
|||
{ |
|||
float4 Color_Color_E181B4C8_Uniform = float4 (1.022059, 1.022059, 1.022059, 0); |
|||
float4 Color_Color_8AFF9DED_Uniform = float4 (1.007353, -0.01481403, -0.01481403, 0); |
|||
float4 Multiply_91E1EE9F_result; |
|||
Unity_Multiply_float(Color_Color_E181B4C8_Uniform, Color_Color_8AFF9DED_Uniform, Multiply_91E1EE9F_result); |
|||
o.Emission = Multiply_91E1EE9F_result; |
|||
} |
|||
ENDCG |
|||
} |
|||
ENDCG |
|||
FallBack "Diffuse" |
|||
CustomEditor "LegacyIlluminShaderGUI" |
|||
FallBack "Diffuse" |
|||
CustomEditor "LegacyIlluminShaderGUI" |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue