CQ_Intelligent-Technology-T.../Assets/AmplifyShaderEditor/Plugins/EditorResources/ShaderFunctions/HDRP Decal UVs.asset

57 lines
5.6 KiB
Plaintext

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
m_Name: HDRP Decal UVs
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset
Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18916\n-1661;92;741;379;1741.565;726.7714;1.556616;True;False\nNode;AmplifyShaderEditor.CustomExpressionNode;1;-318.8017,60.95106;Inherit;False;#if
(SHADERPASS == SHADERPASS_DBUFFER_PROJECTOR) || (SHADERPASS == SHADERPASS_FORWARD_EMISSIVE_PROJECTOR)$\tfloat4x4
normalToWorld = UNITY_ACCESS_INSTANCED_PROP(Decal, _NormalToWorld)@$\tfloat2 scale
= float2(normalToWorld[3][0], normalToWorld[3][1])@$\tfloat2 offset = float2(normalToWorld[3][2],
normalToWorld[3][3])@$\tUV.xy = UV.xy * scale + offset@$#endif$return UV@;2;Create;1;True;UV;FLOAT2;0,0;In;;Inherit;False;TransformUVs;True;False;0;;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;19;-966.6418,239.8069;Inherit;False;UV
Set 5;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSwitch;4;-538.5433,32.07785;Inherit;False;Option;False;1;9;-1;Custom;UV
Set 1;UV Set 2;UV Set 3;UV Set 4;UV Set 5;UV Set 6;UV Set 7;UV Set 8;Object;-1;9;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;2;FLOAT2;0,0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT2;0,0;False;6;FLOAT2;0,0;False;7;FLOAT2;0,0;False;8;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionInput;12;-784,-208;Inherit;False;Input;2;0;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;13;-647.5198,-116.8952;Inherit;False;Custom;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;14;-816.7473,-120.2132;Inherit;False;UV
Set 1;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;15;-826.1411,-10.8725;Inherit;False;UV
Set 2;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;16;-831.071,75.80003;Inherit;False;UV
Set 3;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;17;-978.8472,130.9514;Inherit;False;UV
Set 4;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.TextureCoordinatesNode;3;-1216,-304;Inherit;False;0;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.FunctionSubtitle;18;-957.1628,319.1968;Inherit;False;UV
Set 6;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;20;-967.5405,418.1778;Inherit;False;UV
Set 7;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;21;-960.8478,556.4536;Inherit;False;UV
Set 8;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.TextureCoordinatesNode;9;-1232,624;Inherit;False;7;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.TextureCoordinatesNode;8;-1233.609,496;Inherit;False;6;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.TextureCoordinatesNode;10;-1232,368;Inherit;False;5;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.TextureCoordinatesNode;7;-1232,240;Inherit;False;4;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.TextureCoordinatesNode;11;-1232,112;Inherit;False;3;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.TextureCoordinatesNode;6;-1232,-16;Inherit;False;2;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.TextureCoordinatesNode;5;-1232,-160;Inherit;False;1;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.FunctionOutput;0;-140,65;Inherit;False;True;-1;Output;0;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nWireConnection;1;0;4;0\nWireConnection;19;0;7;0\nWireConnection;4;0;13;0\nWireConnection;4;1;14;0\nWireConnection;4;2;15;0\nWireConnection;4;3;16;0\nWireConnection;4;4;17;0\nWireConnection;4;5;19;0\nWireConnection;4;6;18;0\nWireConnection;4;7;20;0\nWireConnection;4;8;21;0\nWireConnection;12;0;3;0\nWireConnection;13;0;12;0\nWireConnection;14;0;3;0\nWireConnection;15;0;5;0\nWireConnection;16;0;6;0\nWireConnection;17;0;11;0\nWireConnection;18;0;10;0\nWireConnection;20;0;8;0\nWireConnection;21;0;9;0\nWireConnection;0;0;1;0\nASEEND*/\n//CHKSM=8961C5046EC72C0745F0B98C20B5D4BC2954556C"
m_functionName:
m_description: 'Returns the transformed uvs with Decal Projector tiling and offset
taken into account.
Also allows to transform custom UVs via the Custom option'
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: 3
m_customNodeCategory:
m_previewPosition: 0
m_hidden: 0
m_url: