Bidirectional Parallax Mapping.asset 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: Bidirectional Parallax Mapping
  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.FunctionInput;32;-1173.847,777.5085;Inherit;False;SS;13;1;False;1;0;SAMPLERSTATE;0;False;1;SAMPLERSTATE;0\nNode;AmplifyShaderEditor.FunctionInput;11;-1895.168,-38.58259;Inherit;False;Heightmap
  17. Tex;9;0;False;1;0;SAMPLER2D;0.0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.SamplerStateNode;33;-1646.789,729.798;Inherit;False;0;0;0;1;-1;None;1;0;SAMPLER2D;;False;1;SAMPLERSTATE;0\nNode;AmplifyShaderEditor.CustomExpressionNode;35;-693.9971,-314.8272;Float;False;UVs
  18. += plane * scale * refp * ite@$for(int i = 0@ i < ite@ i++)${$\tUVs += (tex2D(tex,
  19. UVs).g - 1) * plane * scale@$}$return UVs@;2;Create;6;True;tex;SAMPLER2D;0.0;In;;Float;False;True;UVs;FLOAT2;0,0;In;;Float;False;True;plane;FLOAT2;0,0;In;;Float;False;True;ite;INT;0;In;;Float;False;True;refp;FLOAT;0;In;;Float;False;True;scale;FLOAT;0;In;;Float;False;IterativeParallaxLegacy;True;False;0;;False;6;0;SAMPLER2D;0.0;False;1;FLOAT2;0,0;False;2;FLOAT2;0,0;False;3;INT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.CustomExpressionNode;27;-727.9086,-54.66006;Float;False;UVs
  20. += plane * scale * refp * ite@$for(int i = 0@ i < ite@ i++)${$#if ASE_USING_SAMPLING_MACROS$\tUVs
  21. += (SAMPLE_TEXTURE2D( tex, customSS, UVs ).g - 1) * plane * scale@$#else$\tUVs
  22. += (tex2D(tex, UVs).g - 1) * plane * scale@$#endif$}$return UVs@;2;Create;7;True;tex;SAMPLER2D;0.0;In;;Float;False;True;UVs;FLOAT2;0,0;In;;Float;False;True;plane;FLOAT2;0,0;In;;Float;False;True;ite;INT;0;In;;Float;False;True;refp;FLOAT;0;In;;Float;False;True;scale;FLOAT;0;In;;Float;False;True;customSS;SAMPLERSTATE;;In;;Inherit;False;IterativeParallax;True;False;0;;False;7;0;SAMPLER2D;0.0;False;1;FLOAT2;0,0;False;2;FLOAT2;0,0;False;3;INT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;SAMPLERSTATE;;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSwitch;34;-372.7607,78.24609;Inherit;False;Unity
  23. 2018 or Higher;True;1;2;-1;In 0;In 1;Object;-1;9;0;FLOAT2;0,0;False;1;FLOAT2;0,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;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionInput;9;-1181.702,667.7348;Inherit;False;Parallax
  24. Scale;1;3;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.TextureCoordinatesNode;22;-1295.124,60.47374;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.DynamicAppendNode;2;-1371.897,195.5105;Inherit;False;FLOAT2;4;0;FLOAT2;0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.SimpleDivideOpNode;4;-1166.738,231.9931;Inherit;False;2;0;FLOAT2;0,0;False;1;FLOAT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionInput;25;-1196.823,405.4736;Inherit;False;Iterations;0;4;False;1;0;INT;1;False;1;INT;0\nNode;AmplifyShaderEditor.FunctionInput;10;-1187.709,555.5891;Inherit;False;Reference
  25. Plane;1;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.ViewDirInputsCoordNode;1;-1618.191,180.3121;Float;False;Tangent;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.FunctionOutput;0;0.5848999,-19.6864;Inherit;False;True;-1;Out;0;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nWireConnection;32;0;33;0\nWireConnection;33;0;11;0\nWireConnection;35;0;11;0\nWireConnection;35;1;22;0\nWireConnection;35;2;4;0\nWireConnection;35;3;25;0\nWireConnection;35;4;10;0\nWireConnection;35;5;9;0\nWireConnection;27;0;11;0\nWireConnection;27;1;22;0\nWireConnection;27;2;4;0\nWireConnection;27;3;25;0\nWireConnection;27;4;10;0\nWireConnection;27;5;9;0\nWireConnection;27;6;32;0\nWireConnection;34;0;35;0\nWireConnection;34;1;27;0\nWireConnection;22;2;11;0\nWireConnection;2;0;1;0\nWireConnection;4;0;2;0\nWireConnection;4;1;1;3\nWireConnection;0;0;34;0\nASEEND*/\n//CHKSM=B8875AFA603FD239AFB5B61629D8562AB9F88C89"
  26. m_functionName:
  27. m_description: Creates a parallax mapping effect with user defined iterations and
  28. reference plane.
  29. m_additionalIncludes:
  30. m_additionalIncludes: []
  31. m_outsideIncludes: []
  32. m_additionalPragmas:
  33. m_additionalPragmas: []
  34. m_outsidePragmas: []
  35. m_additionalDirectives:
  36. m_validData: 0
  37. m_isDirty: 0
  38. m_moduleName: ' Additional Directives'
  39. m_independentModule: 1
  40. m_customEdited: 0
  41. m_additionalDirectives: []
  42. m_shaderFunctionDirectives: []
  43. m_nativeDirectives: []
  44. m_nativeDirectivesIndex: -1
  45. m_nativeDirectivesFoldout: 0
  46. m_directivesSaveItems: []
  47. m_nodeCategory: 15
  48. m_headerStyle: 1
  49. m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
  50. m_customNodeCategory:
  51. m_previewPosition: 0
  52. m_hidden: 0
  53. m_url: