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.
49 lines
5.9 KiB
Plaintext
49 lines
5.9 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: World To Depth To World
|
||
|
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;4010.171;176.3161;1.440901;True;False\nNode;AmplifyShaderEditor.ComponentMaskNode;1;-1344,-16;Inherit;False;True;True;True;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CameraProjectionNode;11;-1792,-16;Inherit;False;unity_CameraInvProjection;0;1;FLOAT4x4;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;10;-1104,32;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;2;-416,48;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.CameraToWorldMatrix;3;-480,-32;Inherit;False;0;1;FLOAT4x4;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;4;-256,0;Inherit;False;2;2;0;FLOAT4x4;0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.CustomExpressionNode;5;-928,224;Inherit;False;float3
|
||
|
result = In@$#if !defined(ASE_SRP_VERSION) || ASE_SRP_VERSION <= 70301 || ASE_SRP_VERSION
|
||
|
>= 80301 $result *= float3(1,1,-1)@$#endif$return result@;3;Create;1;True;In;FLOAT3;0,0,0;In;;Inherit;False;InvertDepthDirHD;True;False;0;;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CustomExpressionNode;6;-944,32;Inherit;False;float3
|
||
|
result = In@$#if !defined(ASE_SRP_VERSION) || ASE_SRP_VERSION <= 70301$result
|
||
|
*= float3(1,1,-1)@$#endif$return result@;3;Create;1;True;In;FLOAT3;0,0,0;In;;Inherit;False;InvertDepthDir;True;False;0;;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.OneMinusNode;7;-2496,320;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DynamicAppendNode;8;-1680,80;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;9;-2400,80;Inherit;False;FLOAT2;1;0;FLOAT2;0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.ScreenDepthNode;12;-2704,256;Inherit;False;1;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.UnityObjToClipPosHlpNode;20;-3264,160;Inherit;False;1;0;FLOAT3;0,0,0;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.ScaleAndOffsetNode;13;-1904,80;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT;2;False;2;FLOAT;-1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StaticSwitch;14;-2336,256;Float;False;Property;_Keyword0;Keyword
|
||
|
0;3;0;Fetch;True;0;0;0;False;0;False;0;0;0;False;UNITY_REVERSED_Z;Toggle;2;Key0;Key1;Fetch;False;True;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;15;-1504,48;Inherit;False;2;2;0;FLOAT4x4;0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.DynamicAppendNode;16;-2064,80;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ComponentMaskNode;17;-1344,96;Inherit;False;False;False;False;True;1;0;FLOAT4;0,0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;18;-2704,80;Inherit;False;Non
|
||
|
Stereo Screen Pos;-1;;6;1731ee083b93c104880efc701e11b49b;0;1;23;FLOAT4;0,0,0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;19;-688,48;Inherit;False;4;0;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionNode;22;-327.2275,-149.6594;Inherit;False;Reconstruct
|
||
|
World Position From Depth;-1;;4;e7094bcbcc80eb140b2a3dbe6a861de8;0;0;1;FLOAT4;0\nNode;AmplifyShaderEditor.ComputeScreenPosHlpNode;23;-3008,160;Inherit;False;True;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.FunctionInput;21;-3456,160;Inherit;False;World
|
||
|
Position;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;0;-32,0;Inherit;False;True;-1;Output;0;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nWireConnection;1;0;15;0\nWireConnection;10;0;1;0\nWireConnection;10;1;17;0\nWireConnection;2;0;19;0\nWireConnection;4;0;3;0\nWireConnection;4;1;2;0\nWireConnection;5;0;10;0\nWireConnection;6;0;10;0\nWireConnection;7;0;12;0\nWireConnection;8;0;13;0\nWireConnection;9;0;18;0\nWireConnection;12;0;23;0\nWireConnection;20;0;21;0\nWireConnection;13;0;16;0\nWireConnection;14;1;12;0\nWireConnection;14;0;7;0\nWireConnection;15;0;11;0\nWireConnection;15;1;8;0\nWireConnection;16;0;9;0\nWireConnection;16;1;9;1\nWireConnection;16;2;14;0\nWireConnection;17;0;15;0\nWireConnection;18;23;23;0\nWireConnection;19;0;6;0\nWireConnection;19;3;6;0\nWireConnection;19;1;6;0\nWireConnection;19;2;5;0\nWireConnection;23;0;20;0\nWireConnection;0;0;4;0\nASEEND*/\n//CHKSM=57D8C3BE2D6125252C5A0551B577BE7C199FDB44"
|
||
|
m_functionName:
|
||
|
m_description:
|
||
|
m_additionalIncludes:
|
||
|
m_additionalIncludes: []
|
||
|
m_outsideIncludes: []
|
||
|
m_additionalPragmas:
|
||
|
m_additionalPragmas: []
|
||
|
m_outsidePragmas: []
|
||
|
m_additionalDirectives:
|
||
|
m_validData: 0
|
||
|
m_isDirty: 0
|
||
|
m_moduleName: ' Additional Directives'
|
||
|
m_independentModule: 1
|
||
|
m_customEdited: 0
|
||
|
m_additionalDirectives: []
|
||
|
m_shaderFunctionDirectives: []
|
||
|
m_nativeDirectives: []
|
||
|
m_nativeDirectivesIndex: -1
|
||
|
m_nativeDirectivesFoldout: 0
|
||
|
m_directivesSaveItems: []
|
||
|
m_nodeCategory: 0
|
||
|
m_customNodeCategory: MudBun
|
||
|
m_previewPosition: 0
|
||
|
m_hidden: 0
|