You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
6.4 KiB
Plaintext
79 lines
6.4 KiB
Plaintext
1 week ago
|
%YAML 1.1
|
||
|
%TAG !u! tag:unity3d.com,2011:
|
||
|
--- !u!114 &11400000
|
||
|
MonoBehaviour:
|
||
|
m_ObjectHideFlags: 0
|
||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||
|
m_PrefabInstance: {fileID: 0}
|
||
|
m_PrefabAsset: {fileID: 0}
|
||
|
m_GameObject: {fileID: 0}
|
||
|
m_Enabled: 1
|
||
|
m_EditorHideFlags: 0
|
||
|
m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
|
||
|
m_Name: Mud Decal
|
||
|
m_EditorClassIdentifier:
|
||
|
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity
|
||
|
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18909\n-1610;238;1302;678;-4.906525;539.6661;2.211402;True;False\nNode;AmplifyShaderEditor.ComponentMaskNode;42;2384,144;Inherit;False;True;True;True;False;1;0;COLOR;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.PosVertexDataNode;106;512,128;Inherit;False;0;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;29;2512,512;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;25;1904,-96;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;1;COLOR;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;104;1408,0;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.RangedFloatNode;34;2160,512;Inherit;False;Property;_Smoothness;Smoothness;3;1;[HideInInspector];Fetch;True;0;0;0;False;0;False;1;0;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.ComponentMaskNode;14;2112,0;Inherit;False;False;False;False;True;1;0;COLOR;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.ColorNode;35;2160,144;Inherit;False;Property;_Emission;Emission;1;1;[HideInInspector];Fetch;True;0;0;0;False;0;False;1,1,1,1;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.CustomExpressionNode;49;1600,0;Inherit;False;DecalResults
|
||
|
res = sdf_decal(PositionWs)@$Color = res.mat.color@$Emission = res.mat.emissionHash.rgb@$Metallic
|
||
|
= res.mat.metallicSmoothnessSizeTightness.x@$Smoothness = res.mat.metallicSmoothnessSizeTightness.y@$SdfValue
|
||
|
= res.sdfValue@$return res.hit@;0;Create;6;True;PositionWs;FLOAT3;0,0,0;In;;Inherit;False;True;Color;FLOAT4;0,0,0,0;Out;;Inherit;False;True;Emission;FLOAT3;0,0,0;Out;;Inherit;False;True;Metallic;FLOAT;0;Out;;Inherit;False;True;Smoothness;FLOAT;0;Out;;Inherit;False;True;SdfValue;FLOAT;0;Out;;Inherit;False;My
|
||
|
Custom Expression;True;False;0;;False;6;0;FLOAT3;0,0,0;False;1;FLOAT4;0,0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;INT;0;FLOAT4;2;FLOAT3;3;FLOAT;4;FLOAT;5;FLOAT;6\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;27;2592,64;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;28;2512,352;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;37;2160,352;Inherit;False;Property;_Metallic;Metallic;2;1;[HideInInspector];Fetch;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;71;1024,-96;Inherit;False;Property;_MaterialNeedsSdfProperties;Material
|
||
|
Needs SDF Properties;4;1;[HideInInspector];Create;False;0;0;0;False;0;False;1;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.RangedFloatNode;105;1024,32;Inherit;False;Property;_MaterialNeedsVoxelExpansion;Material
|
||
|
Needs Voxel Expansion;5;1;[HideInInspector];Create;True;0;0;0;False;0;False;1;1;0;0;0;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;103;1024,128;Inherit;False;World
|
||
|
To Depth To World;-1;;17;1f4723e50e3978e41bbd4006779ebc41;0;1;21;FLOAT3;0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.VertexToFragmentNode;107;768,128;Inherit;False;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ColorNode;36;1600,-224;Inherit;False;Property;_Color;Color;0;1;[HideInInspector];Fetch;True;0;0;0;False;0;False;1,1,1,1;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.FunctionOutput;11;2672,352;Inherit;False;False;-1;Metallic;3;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;12;2672,512;Inherit;False;False;-1;Smoothness;4;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;10;2752,64;Inherit;False;True;-1;Emission;2;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;45;2160,656;Inherit;False;False;-1;SDF
|
||
|
Value;5;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;13;2320,0;Inherit;False;False;-1;Alpha;1;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;9;2320,-96;Inherit;False;False;-1;Color;0;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0\nWireConnection;42;0;35;0\nWireConnection;29;0;49;5\nWireConnection;29;1;34;0\nWireConnection;25;0;36;0\nWireConnection;25;1;49;2\nWireConnection;104;0;71;0\nWireConnection;104;1;105;0\nWireConnection;104;2;103;0\nWireConnection;14;0;25;0\nWireConnection;49;0;104;0\nWireConnection;27;0;49;3\nWireConnection;27;1;42;0\nWireConnection;28;0;49;4\nWireConnection;28;1;37;0\nWireConnection;103;21;107;0\nWireConnection;107;0;106;0\nWireConnection;11;0;28;0\nWireConnection;12;0;29;0\nWireConnection;10;0;27;0\nWireConnection;45;0;49;6\nWireConnection;13;0;14;0\nWireConnection;9;0;25;0\nASEEND*/\n//CHKSM=9377C505657E5AABA5B208E5A964798A5A86DE3F"
|
||
|
m_functionName:
|
||
|
m_description:
|
||
|
m_additionalIncludes:
|
||
|
m_additionalIncludes: []
|
||
|
m_outsideIncludes: []
|
||
|
m_additionalPragmas:
|
||
|
m_additionalPragmas: []
|
||
|
m_outsidePragmas: []
|
||
|
m_additionalDirectives:
|
||
|
m_validData: 0
|
||
|
m_isDirty: 1
|
||
|
m_moduleName: ' Additional Directives'
|
||
|
m_independentModule: 1
|
||
|
m_customEdited: 0
|
||
|
m_additionalDirectives:
|
||
|
- {fileID: 0}
|
||
|
- {fileID: 0}
|
||
|
- {fileID: 0}
|
||
|
- {fileID: 0}
|
||
|
- {fileID: 0}
|
||
|
m_shaderFunctionDirectives: []
|
||
|
m_nativeDirectives: []
|
||
|
m_nativeDirectivesIndex: -1
|
||
|
m_nativeDirectivesFoldout: 0
|
||
|
m_directivesSaveItems:
|
||
|
- LineType: 1
|
||
|
LineValue: SHADER_GRAPH
|
||
|
GUIDToggle: 0
|
||
|
GUIDValue:
|
||
|
Origin: 2
|
||
|
- LineType: 2
|
||
|
LineValue: multi_compile _ MUDBUN_PROCEDURAL
|
||
|
GUIDToggle: 0
|
||
|
GUIDValue:
|
||
|
Origin: 2
|
||
|
- LineType: 0
|
||
|
LineValue: Assets/MudBun/Shader/Render/ShaderCommon.cginc
|
||
|
GUIDToggle: 0
|
||
|
GUIDValue:
|
||
|
Origin: 2
|
||
|
- LineType: 0
|
||
|
LineValue: Assets/MudBun/Shader/Render/MeshCommon.cginc
|
||
|
GUIDToggle: 0
|
||
|
GUIDValue:
|
||
|
Origin: 2
|
||
|
- LineType: 0
|
||
|
LineValue: Assets/MudBun/Shader/Decal.cginc
|
||
|
GUIDToggle: 0
|
||
|
GUIDValue:
|
||
|
Origin: 2
|
||
|
m_nodeCategory: 0
|
||
|
m_customNodeCategory: MudBun
|
||
|
m_previewPosition: 0
|
||
|
m_hidden: 0
|