{"id":1342,"date":"2022-07-04T18:34:53","date_gmt":"2022-07-04T10:34:53","guid":{"rendered":"https:\/\/www.mapleriver.cn\/?p=1342"},"modified":"2022-07-04T18:34:53","modified_gmt":"2022-07-04T10:34:53","slug":"shadertoy-heart","status":"publish","type":"post","link":"https:\/\/www.mapleriver.cn\/?p=1342","title":{"rendered":"ShaderToy &#8211; Heart"},"content":{"rendered":"<p><a href=\"https:\/\/www.shadertoy.com\/view\/XsfGRn\">ShaderToy\u5730\u5740<\/a><\/p>\n<h5>1.\u80cc\u666f\u7ed8\u5236<\/h5>\n<p>&emsp;\u00a0&emsp;\u8fd9\u91cc\u7684\u80cc\u666f\u7ed8\u5236\u6bd4\u4e0a\u4e00\u4e2a\u8981\u7b80\u5355\u4e00\u4e9b\uff1a<\/p>\n<pre><code class=\"language-CG\">vec4 main(vec2 fragCoord) {\n    vec2 p = (2.0 * fragCoord - iResolution.xy) \/ min(iResolution.y, iResolution.x);\n    vec3 bcol = vec3(1.0, 0.8, 0.7 - 0.07 * p.y) * (1.0 - 0.25 * length(p));\n    return float4(bcol, 1);\n}<\/code><\/pre>\n<p>&emsp;\u00a0&emsp;\u9996\u5148\u8ba1\u7b97\u4e86p\uff0c\u5176\u4e2dfragCoord\u672c\u8eab\u5c31\u4ee3\u8868\u5c4f\u5e55\u5927\u5c0f\uff0c\u4ee51920 * 1080\u4e3e\u4f8b\uff0c\u90a3\u4e48\u524d\u534a\u6bb5<code>(2.0 * fragCoord - iResolution.xy)<\/code>\u5c31\u662f\u628a\u539f\u6765\u7684\u8303\u56f4\u6269\u5927\u4e3a\u4e8c\u500d\u5e76\u8fdb\u884c\u4e00\u6b21\u4f4d\u79fb\uff1a<\/p>\n<ul>\n<li>x:[0, 1920] -&gt; [-1920, 1920]<\/li>\n<li>y:[0, 1080] -&gt; [-1080, 1080]<\/li>\n<\/ul>\n<p>&emsp;\u00a0&emsp;\u7136\u540e<code>min(iResolution.y, iResolution.x)<\/code>\u5bf9\u5c4f\u5e55\u4e0a\u8ddd\u79bb\u6bd4\u8f83\u5c0f\u7684\u90a3\u4e00\u4fa7\u8fdb\u884c\u5f52\u4e00\u5316\uff1a<\/p>\n<ul>\n<li>x:[-1920, 1920] -&gt; [-1.78, 1.78]<\/li>\n<li>y:[-1080, 1080] -&gt; [-1, 1]<\/li>\n<\/ul>\n<p>&emsp;\u00a0&emsp;\u63a5\u4e0b\u6765\u8ba1\u7b97\u989c\u8272\u65f6\u4f7f\u7528\u4e86\u4e0a\u9762\u7684\u7ed3\u679cp\u7684Y\u503c\u548c\u8ddd\u79bb\u503c\uff1a<\/p>\n<ul>\n<li>\u5176\u4e2dy\u503c\u8d8a\u5927\uff0c\u989c\u8272\u7684Blue\u8272\u57df\u8d8a\u5c0f\u3002<\/li>\n<li>P\u7684\u8ddd\u79bb\u8d8a\u5c0f\uff0c\u4e5f\u5c31\u662fP\u79bb\u539f\u70b9\u8d8a\u8fd1\uff0c\u989c\u8272\u5c31\u66f4\u4eae\uff08rgb\u90fd\u66f4\u9ad8\uff09\u3002<\/li>\n<li>0.25\u53ea\u662f\u4e3a\u4e86\u63a7\u5236\u8fd9\u4e2a\u989c\u8272\u7684\u8303\u56f4\uff0c\u662f\u4e00\u4e2a\u7406\u8bba\u503c\uff0c\u6b64\u5916\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8c03\u8282p\u7684\u5750\u6807\u6765\u79fb\u52a8\u539f\u70b9<br \/>\n1 - length(p):<br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/1-lengthp.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/1-lengthp.png\" alt=\"\" \/><\/a><br \/>\n1 - 0.25 * length(p):<br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/1-0.25p.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/1-0.25p.png\" alt=\"\" \/><\/a><\/li>\n<\/ul>\n<h5>2.\u7ed8\u5236\u5fc3\u5f62<\/h5>\n<p>&emsp;\u00a0&emsp;\u5fc3\u5f62\u7684\u7ed8\u5236\u548c\u6211\u4eec\u4e4b\u524d\u7ed8\u5236\u70b9\u548c\u7ebf\u7684\u8fc7\u7a0b\u5dee\u4e0d\u591a\uff1a\u5148\u786e\u5b9a\u5fc3\u5f62\u7684\u8868\u8fbe\u5f0f\uff0c\u7136\u540e\u5224\u65ad\u67d0\u4e2a\u50cf\u7d20\u662f\u5426\u5728\u5fc3\u5185\uff0c\u4eba\u5982\u679c\u5728\u5fc3\u5185\u4f7f\u7528\u5fc3\u7684\u989c\u8272\uff0c\u5426\u5219\u4f7f\u7528\u80cc\u666f\u8272\u3002<br \/>\n&emsp;\u00a0&emsp;\u8fd9\u91cc\u4f5c\u8005\u63d0\u4f9b\u4e86\u4e24\u79cd\u5fc3\u5f62\u7684\u7ed8\u5236\u65b9\u6cd5\uff0c\u5206\u522b\u4e3a\uff1a<\/p>\n<pre><code class=\"language-CG\">p.y -= 0.25;\nfloat a = atan2(p.x, p.y) \/ 3.141593;\nfloat r = length(p);\nfloat h = abs(a);\nfloat d = (13.0 * h - 22.0 * h * h + 10.0 * h * h * h) \/ (6.0 - 5.0 * h);<\/code><\/pre>\n<p>\u548c\uff1a<\/p>\n<pre><code class=\"language-CG\">p *= 0.8;\np.y = -0.1 - p.y * 1.2 + abs(p.x) * (1.0 - abs(p.x));\nfloat r = length(p);\nfloat d = 0.5;<\/code><\/pre>\n<p>&emsp;\u00a0&emsp;\u8bf4\u5b9e\u8bdd\uff0c\u4e24\u4e2a\u90fd\u6ca1\u770b\u61c223333<\/p>\n<h5>3.\u586b\u5145\u5fc3\u5f62\u989c\u8272<\/h5>\n<p>&emsp;\u00a0&emsp;\u7ecf\u8fc7\u4e0a\u9762\u7684\u4e00\u987f\u5fc3\u5f62\u8ba1\u7b97\uff0c\u5176\u5b9e\u6211\u5df2\u7ecf\u732a\u8111\u8fc7\u8f7d\u4e86\uff0c\u4f46\u662f\u4eba\u751f\u8fd8\u662f\u8981\u7ee7\u7eed\uff0c\u4ee3\u7801\u8fd8\u662f\u8981\u6284\u4e0b\u53bb\uff0c\u63a5\u4e0b\u6765\u642c\u4e00\u4e0b\u5fc3\u5f62\u7684\u989c\u8272<\/p>\n<pre><code class=\"language-CG\">float s = 0.75 + 0.75 * p.x;\ns *= 1.0 - 0.4 * r;\ns = 0.3 + 0.7 * s;\ns *= 0.5 + 0.5 * pow(1.0 - clamp(r \/ d, 0.0, 1.0), 0.1);\nvec3 hcol = vec3(1.0, 0.4 * r, 0.3) * s;<\/code><\/pre>\n<p>&emsp;\u00a0&emsp;\u4e0a\u8ff0\u4e24\u79cd\u8ba1\u7b97\u65b9\u5f0f\u6700\u540e\u90fd\u4f1a\u58f0\u660e\u4e00\u4e2ar\uff08p\u5230\u4e2d\u5fc3\u70b9\u8ddd\u79bb\uff09\u548cd\uff08\u61f5\u903c\uff09\u3002\u63a5\u4e0b\u6765\u7684\u989c\u8272\u8ba1\u7b97\u53ef\u4ee5\u770b\u6211\u4ece\u4e50\u4e50\u8001\u5e08\u90a3\u5077\u8fc7\u6765\u7684\u56fe\uff1a<br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/1.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/1.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/2.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/2.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/3.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/3.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/4.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/4.png\" alt=\"\" \/><\/a><br \/>\n&emsp;\u00a0&emsp;\u4ece\u56fe\u7247\u6211\u4eec\u53ef\u4ee5\u76f4\u89c2\u7684\u770b\u51fa\uff0c\u7b2c\u4e00\u884c\u6839\u636ep\u7684x\u65b9\u5411\u6765\u5f97\u5230\u4e00\u4e2a\u5728x\u65b9\u5411\u4e0a\u7684\u6e10\u53d8\uff0c\u7b2c\u4e8c\u884c\u5728\u6b64\u57fa\u7840\u4e0a\u6dfb\u52a0\u4e86\u6839\u636ep\u7684\u8ddd\u79bb\u6765\u4ea7\u751f\u7684\u6e10\u53d8\uff0c\u867d\u7136\u4e0d\u660e\u663e\u4f46\u53ef\u4ee5\u770b\u51fa\u65b0\u7684\u6e10\u53d8\u6709\u4e86\u5f27\u5f62\uff0c\u7b2c\u4e09\u884c\u5219\u662f\u4f7f\u7528\u7c7b\u4f3c\u534a\u5170\u4f2f\u7279\u7684\u65b9\u6cd5\uff0c\u589e\u4eae\u4e86\u5de6\u4fa7\u6697\u90e8\u533a\u57df\uff0c\u800c\u6700\u540e\u4e00\u884c\u5219\u5173\u952e\u7684\u5206\u51fa\u4e86\u5fc3\u5f62\u5185\u5916\u7684\u533a\u57df\u989c\u8272\u3002<\/p>\n<h5>4.\u5fc3\u7684\u8df3\u52a8<\/h5>\n<p>&emsp;\u00a0&emsp;\u8df3\u52a8\u76f8\u5173\u51fd\u6570\u4e5f\u57fa\u672c\u4e0a\u76f4\u63a5\u62ff\u8fc7\u6765\u5c31\u53ef\u4ee5\u7528\u4e86\uff1a<\/p>\n<pre><code class=\"language-CG\">\/\/ animate\nfloat tt = mod(_Time.y, 1.5) \/ 1.5;\nfloat ss = pow(tt, .2) * 0.5 + 0.5;\nss = 1.0 + ss * 0.5 * sin(tt * 6.2831 * 3.0 + p.y * 0.5) * exp(-tt * 4.0);\np *= vec2(0.5, 1.5) + ss * vec2(0.5, -0.5);<\/code><\/pre>\n<p>&emsp;\u00a0&emsp;\u7b80\u7b80\u5355\u5355\u7684\u56db\u884c\u4ee3\u7801\uff0c\u6211\u53ea\u80fd\u770b\u61c2\u7b2c\u4e00\u884c\u662f\u4e00\u4e2a\u5468\u671f\u51fd\u6570\uff0c\u800c\u4e14\u5468\u671f\u662f1.5s\u3002\uff08\u5148\u5bf91.5\u6c42\u4f59\uff0c\u628a\u65f6\u95f4\u9650\u5b9a\u5230\u8303\u56f4[0-1.5]\uff0c\u7136\u540e\u518d\u96641.5\u8fdb\u884c\u5f52\u4e00\u5316\uff0c\u65f6\u95f4\u53d8\u6210[0-1]\u8303\u56f4\uff09<br \/>\n&emsp;\u00a0&emsp;\u7136\u540e\u63a5\u4e0b\u67652\u30013\u884c\u5c31\u662f\u5bf9\u8fd9\u4e2a\u5468\u671f\u51fd\u6570\u4e00\u987f\u64cd\u4f5c\uff0c\u5f88\u4e0d\u5e78\u6211\u53c8\u732a\u8111\u8fc7\u8f7d\u4e86\u3002\u4f46\u662f\u4e50\u4e50\u8001\u5e08\u603b\u7ed3\u4e86\u8fd9\u662f\u4e00\u6bb5\u5468\u671f\u51fd\u6570\u7684\u52a8\u753b\u6548\u679c\uff0c\u5927\u6982\u66f2\u7ebf\u4e3a\uff1a<br \/>\n<a href=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/curve.png\"><img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/curve.png\" alt=\"\" \/><\/a><br \/>\n&emsp;\u00a0&emsp;\u901a\u8fc7\u4e0a\u9762\u7684\u66f2\u7ebf\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\u6765\uff0c\u8fd9\u4e2a\u51fd\u6570\u7684y\u503c\u8303\u56f4\u57fa\u672c\u90fd\u57281\u9644\u8fd1\u8df3\u52a8\u3002\u6240\u4ee5\u7b2c4\u884c\u5176\u5b9e\u5c31\u662f\u5c06\u8fd9\u4e2a\u66f2\u7ebf\u548c\u6211\u4eec\u60f3\u8981\u7684\u5fc3\u5728y\u8f74\u4e0a\u62c9\u4f38\uff0cx\u8f74\u4e0a\u6536\u7f29\u8fdb\u884c\u4e00\u6b21\u52a0\u6743\u5e73\u5747\u3002x\u6ca1\u4ec0\u4e48\u597d\u8bf4\u7684\uff0c\u4e24\u4e2a\u5404\u53d60.5\uff0c\u4f46y\u503c\u56e0\u4e3a\u57281\u9644\u8fd1\u8df3\u52a8\uff0c\u5f53\u53d6\u503c\u4e3a0.5\u65f6\u503c\u4e5f\u57280.5\u5de6\u53f3\u8df3\u52a8\uff0c\u8fd9\u91cc\u53d6-0.5\u65f6\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u7ed3\u679c\u4e0d\u4f1a\u5341\u5206\u5938\u5f20\uff0c\u6240\u4ee5\u524d\u9762\u7684\u503c\u9009\u62e9\u57281.5\uff0c\u6240\u4ee5\u6700\u7ec8\u7ed3\u679c\u4f1a\u57281-5-0.5=1\u5de6\u53f3\u8df3\u52a8\u3002<\/p>\n<h5>5.\u7ed3\u679c<\/h5>\n<p><div class=\"wp-gp-pp-container\" style=\"width: 502px; height: 284px\" data-width=\"502\" data-height=\"284\" data-media-id=\"1350\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/07\/Heart_gif_thumbnail.jpeg\" id=\"wp-gp-pp--id-1350--thumbnail\" class=\"wp-gp-pp-gif-thumbnail\" width=\"502\" height=\"284\" alt=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"\" id=\"wp-gp-pp--id-13503738985112\" class=\"wp-gp-pp-gif\" width=\"502\" height=\"284\" alt=\"\"><div class=\"wp-gp-pp-overlay\"> <div class=\"wp-gp-pp-play-button\">GIF<\/div> <\/div> <\/div><br \/>\n&emsp;\u00a0&emsp;\u8fd9\u4e00\u987f\u6284\u4e0b\u6765\uff0c\u732a\u8111\u75af\u72c2\u8fc7\u8f7d\uff0c\u6570\u5b66\u592a\u5dee\u4e86\u554a\u3002\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-CG\">Shader &quot;Shadertoy\/Heart&quot; {\n\u00a0 \u00a0 Properties{\n\u00a0 \u00a0 }\n\u00a0 \u00a0 \u00a0 \u00a0 CGINCLUDE\n#include &quot;UnityCG.cginc&quot; \u00a0\n#pragma target 3.0 \u00a0 \u00a0 \u00a0\n#define vec2 float2\n#define vec3 float3\n#define vec4 float4\n#define mat2 float2x2\n#define mat3 float3x3\n#define mat4 float4x4\n#define iGlobalTime _Time.y\n#define mod fmod\n#define mix lerp\n#define fract frac\n#define texture2D tex2D\n#define iResolution _ScreenParams\n#define gl_FragCoord ((_iParam.scrPos.xy\/_iParam.scrPos.w) * _ScreenParams.xy)\n#define PI2 6.28318530718\n#define pi 3.14159265358979\n#define halfpi (pi * 0.5)\n#define oneoverpi (1.0 \/ pi)\n\u00a0 \u00a0 struct v2f {\n\u00a0 \u00a0 \u00a0 \u00a0 float4 pos : SV_POSITION;\n\u00a0 \u00a0 \u00a0 \u00a0 float4 scrPos : TEXCOORD0;\n\u00a0 \u00a0 };\n\u00a0 \u00a0 v2f vert(appdata_base v) {\n\u00a0 \u00a0 \u00a0 \u00a0 v2f o;\n\u00a0 \u00a0 \u00a0 \u00a0 o.pos = UnityObjectToClipPos(v.vertex);\n\u00a0 \u00a0 \u00a0 \u00a0 o.scrPos = ComputeScreenPos(o.pos);\n\u00a0 \u00a0 \u00a0 \u00a0 return o;\n\u00a0 \u00a0 }\n\u00a0 \u00a0 vec4 main(vec2 fragCoord);\n\u00a0 \u00a0 fixed4 frag(v2f _iParam) : COLOR0{\n\u00a0 \u00a0 \u00a0 \u00a0 vec2 fragCoord = gl_FragCoord;\n\u00a0 \u00a0 \u00a0 \u00a0 return main(gl_FragCoord);\n\u00a0 \u00a0 }\n\u00a0 \u00a0 vec4 main(vec2 fragCoord) {\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ background color\n\u00a0 \u00a0 \u00a0 \u00a0 vec2 p = (2.0 * fragCoord - iResolution.xy) \/ min(iResolution.y, iResolution.x);\n\u00a0 \u00a0 \u00a0 \u00a0 vec3 bcol = vec3(1.0, 0.8, 0.7 - 0.07 * p.y) * (1.0 - 0.25 * length(p));\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ animate\n\u00a0 \u00a0 \u00a0 \u00a0 float tt = mod(_Time.y, 1.5) \/ 1.5;\n\u00a0 \u00a0 \u00a0 \u00a0 float ss = pow(tt, .2) * 0.5 + 0.5;\n\u00a0 \u00a0 \u00a0 \u00a0 ss = 1.0 + ss * 0.5 * sin(tt * 6.2831 * 3.0 + p.y * 0.5) * exp(-tt * 4.0);\n\u00a0 \u00a0 \u00a0 \u00a0 p *= vec2(0.5, 1.5) + ss * vec2(0.5, -0.5);\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ shape\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ p *= 0.8;\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ p.y = -0.1 - p.y * 1.2 + abs(p.x) * (1.0 - abs(p.x));\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ float r = length(p);\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ float d = 0.5;\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ shape\n\u00a0 \u00a0 \u00a0 \u00a0 p.y -= 0.25;\n\u00a0 \u00a0 \u00a0 \u00a0 float a = atan2(p.x, p.y) \/ 3.141593;\n\u00a0 \u00a0 \u00a0 \u00a0 float r = length(p);\n\u00a0 \u00a0 \u00a0 \u00a0 float h = abs(a);\n\u00a0 \u00a0 \u00a0 \u00a0 float d = (13.0 * h - 22.0 * h * h + 10.0 * h * h * h) \/ (6.0 - 5.0 * h);\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ color\n\u00a0 \u00a0 \u00a0 \u00a0 float s = 0.75 + 0.75 * p.x;\n\u00a0 \u00a0 \u00a0 \u00a0 s *= 1.0 - 0.4 * r;\n\u00a0 \u00a0 \u00a0 \u00a0 s = 0.3 + 0.7 * s;\n\u00a0 \u00a0 \u00a0 \u00a0 s *= 0.5 + 0.5 * pow(1.0 - clamp(r \/ d, 0.0, 1.0), 0.1);\n\u00a0 \u00a0 \u00a0 \u00a0 vec3 hcol = vec3(1.0, 0.4 * r, 0.3) * s;\n\u00a0 \u00a0 \u00a0 \u00a0 vec3 col = mix(bcol, hcol, smoothstep(-0.01, 0.01, d - r));\n\u00a0 \u00a0 \u00a0 \u00a0 return float4(col, 1);\n\u00a0 \u00a0 }\n\u00a0 \u00a0 ENDCG\n\u00a0 \u00a0 SubShader{\n\u00a0 \u00a0 \u00a0 \u00a0 Pass {\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 CGPROGRAM\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #pragma vertex vert \u00a0 \u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #pragma fragment frag \u00a0 \u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #pragma fragmentoption ARB_precision_hint_fastest \u00a0 \u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ENDCG\n\u00a0 \u00a0 \u00a0 \u00a0 }\n\u00a0 \u00a0 }\n\u00a0 \u00a0 FallBack Off\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ShaderToy\u5730\u5740 1.\u80cc\u666f\u7ed8\u5236 &emsp;\u00a0&emsp;\u8fd9\u91cc\u7684\u80cc\u666f\u7ed8\u5236\u6bd4\u4e0a\u4e00\u4e2a\u8981\u7b80\u5355\u4e00\u4e9b\uff1a vec4  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-1342","post","type-post","status-publish","format-standard","hentry","category-shadertoy"],"_links":{"self":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts\/1342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1342"}],"version-history":[{"count":2,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts\/1342\/revisions"}],"predecessor-version":[{"id":1353,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts\/1342\/revisions\/1353"}],"wp:attachment":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}