%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: Bidirectional Parallax Mapping m_EditorClassIdentifier: m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18811\n-2078;98;1539;885;2195.799;594.0439;1.72294;False;False\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 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;1;0;SAMPLER2D;;False;1;SAMPLERSTATE;0\nNode;AmplifyShaderEditor.CustomExpressionNode;35;-693.9971,-314.8272;Float;False;UVs += plane * scale * refp * ite@$for(int i = 0@ i < ite@ i++)${$\tUVs += (tex2D(tex, UVs).g - 1) * plane * scale@$}$return UVs@;2;False;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;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 += plane * scale * refp * ite@$for(int i = 0@ i < ite@ i++)${$#if ASE_USING_SAMPLING_MACROS$\tUVs += (SAMPLE_TEXTURE2D( tex, customSS, UVs ).g - 1) * plane * scale@$#else$\tUVs += (tex2D(tex, UVs).g - 1) * plane * scale@$#endif$}$return UVs@;2;False;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;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 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 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 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=6EE46B6FFD57D58A4296B6A03938C323EF31A8F5" m_functionName: m_description: Creates a parallax mapping effect with user defined iterations and reference plane. 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: 15 m_customNodeCategory: m_previewPosition: 0 m_hidden: 0