HDRP Decal UVs.asset 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. %YAML 1.1
  2. %TAG !u! tag:unity3d.com,2011:
  3. --- !u!114 &11400000
  4. MonoBehaviour:
  5. m_ObjectHideFlags: 0
  6. m_CorrespondingSourceObject: {fileID: 0}
  7. m_PrefabInstance: {fileID: 0}
  8. m_PrefabAsset: {fileID: 0}
  9. m_GameObject: {fileID: 0}
  10. m_Enabled: 1
  11. m_EditorHideFlags: 0
  12. m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
  13. m_Name: HDRP Decal UVs
  14. m_EditorClassIdentifier:
  15. m_functionInfo: "// Made with Amplify Shader Editor v1.9.1\n// Available at the
  16. Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19100\nNode;AmplifyShaderEditor.CustomExpressionNode;1;-318.8017,60.95106;Inherit;False;#if
  17. (SHADERPASS == SHADERPASS_DBUFFER_PROJECTOR) || (SHADERPASS == SHADERPASS_FORWARD_EMISSIVE_PROJECTOR)$\tfloat4x4
  18. normalToWorld = UNITY_ACCESS_INSTANCED_PROP(Decal, _NormalToWorld)@$\tfloat2
  19. scale = float2(normalToWorld[3][0], normalToWorld[3][1])@$\tfloat2 offset = float2(normalToWorld[3][2],
  20. 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
  21. 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
  22. 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
  23. Set 1;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;15;-826.1411,-10.8725;Inherit;False;UV
  24. Set 2;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;16;-831.071,75.80003;Inherit;False;UV
  25. Set 3;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;17;-978.8472,130.9514;Inherit;False;UV
  26. 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
  27. Set 6;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;20;-967.5405,418.1778;Inherit;False;UV
  28. Set 7;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSubtitle;21;-960.8478,556.4536;Inherit;False;UV
  29. 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=37A533BB5341CBDA381424477CA67D4E286FBA80"
  30. m_functionName:
  31. m_description: 'Returns the transformed uvs with Decal Projector tiling and offset
  32. taken into account.
  33. Also allows to transform custom UVs via the Custom option'
  34. m_additionalIncludes:
  35. m_additionalIncludes: []
  36. m_outsideIncludes: []
  37. m_additionalPragmas:
  38. m_additionalPragmas: []
  39. m_outsidePragmas: []
  40. m_additionalDirectives:
  41. m_validData: 0
  42. m_isDirty: 0
  43. m_moduleName: ' Additional Directives'
  44. m_independentModule: 1
  45. m_customEdited: 0
  46. m_additionalDirectives: []
  47. m_shaderFunctionDirectives: []
  48. m_nativeDirectives: []
  49. m_nativeDirectivesIndex: -1
  50. m_nativeDirectivesFoldout: 0
  51. m_directivesSaveItems: []
  52. m_nodeCategory: 3
  53. m_headerStyle: 1
  54. m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
  55. m_customNodeCategory:
  56. m_previewPosition: 0
  57. m_hidden: 0
  58. m_url: