{"id":1803,"date":"2014-08-06T19:13:06","date_gmt":"2014-08-06T10:13:06","guid":{"rendered":"http:\/\/mirror.boy.jp\/?p=1803"},"modified":"2014-08-06T19:21:34","modified_gmt":"2014-08-06T10:21:34","slug":"jit-gl-shader-glsl-%e3%81%a7%e3%83%9e%e3%83%ab%e3%83%81%e3%83%86%e3%82%af%e3%82%b9%e3%83%81%e3%83%a3-maxmsp-jitter-glsl","status":"publish","type":"post","link":"https:\/\/mirror.boy.jp\/?p=1803","title":{"rendered":"jit.gl.shader \/ GLSL \u3067\u30de\u30eb\u30c1\u30c6\u30af\u30b9\u30c1\u30e3 #maxmsp #jitter #glsl"},"content":{"rendered":"<p><a onclick=\"javascript:pageTracker._trackPageview('\/downloads\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09.jpeg');\"  href=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09.jpeg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09-1024x576.jpeg\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-08-06 19.09.09\" width=\"1024\" height=\"576\" class=\"alignnone size-large wp-image-1805\" srcset=\"https:\/\/mirror.boy.jp\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09-1024x576.jpeg 1024w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09-400x225.jpeg 400w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09-304x171.jpeg 304w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2014\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2014-08-06-19.09.09.jpeg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2>\u30de\u30eb\u30c1\u30c6\u30af\u30b9\u30c1\u30e3<\/h2>\n<p>jit.gl.shader\u306e\u4e2d\u3067\u8907\u6570\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8abf\u3079\u307e\u3057\u305f\u3002<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/cycling74.com\/docs\/max5\/tutorials\/jit-tut\/jitterchapter43.html');\"  href=\"http:\/\/cycling74.com\/docs\/max5\/tutorials\/jit-tut\/jitterchapter43.html\">Tutorial 43: A Slab of Your Very Own <\/a>\u3053\u3061\u3089\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u65b9\u6cd5\u3067\u3059\u3002jit.gl.slab\u3067\u4f7f\u3046\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001jit.gl.shader\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u5c11\u3057\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>JXS \/ GLSL\u30b3\u30fc\u30c9<\/h2>\n<p>[c]<br \/>\n&lt;jittershader name=&quot;mrr.mixer.4ch.jxs&quot;&gt;<br \/>\n\t&lt;description&gt;<br \/>\n\t&lt;\/description&gt;<\/p>\n<p>\t&lt;param name=&quot;a&quot; type=&quot;vec4&quot; default=&quot;0.25 0.25 0.25 0.25&quot;\/&gt;<br \/>\n\t&lt;param name=&quot;b&quot; type=&quot;vec4&quot; default=&quot;0.25 0.25 0.25 0.25&quot;\/&gt;<br \/>\n\t&lt;param name=&quot;c&quot; type=&quot;vec4&quot; default=&quot;0.25 0.25 0.25 0.25&quot;\/&gt;<br \/>\n\t&lt;param name=&quot;d&quot; type=&quot;vec4&quot; default=&quot;0.25 0.25 0.25 0.25&quot;\/&gt;<br \/>\n&lt;!&#8211; \uff14\u3064\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u3092\u4f7f\u3046\u5834\u5408\u306b\u306fparam\u8981\u7d20\u306e\u6307\u5b9a\u3068\u3001default\u5024\u306e\u6307\u5b9a\u304c\u5fc5\u9808 &#8211;&gt;<br \/>\n\t&lt;param name=&quot;tex0&quot; type=&quot;int&quot; default=&quot;0&quot; \/&gt;<br \/>\n\t&lt;param name=&quot;tex1&quot; type=&quot;int&quot; default=&quot;1&quot; \/&gt;<br \/>\n\t&lt;param name=&quot;tex2&quot; type=&quot;int&quot; default=&quot;2&quot; \/&gt;<br \/>\n\t&lt;param name=&quot;tex3&quot; type=&quot;int&quot; default=&quot;3&quot; \/&gt;<br \/>\n\t&lt;language name=&quot;glsl&quot; version=&quot;1.2&quot;&gt;<br \/>\n\t&lt;bind param=&quot;a&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;b&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;c&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;d&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;tex0&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;tex1&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;tex2&quot; program=&quot;fp&quot; \/&gt;<br \/>\n\t&lt;bind param=&quot;tex3&quot; program=&quot;fp&quot; \/&gt;<\/p>\n<p>\t\t&lt;program name=&quot;vp&quot; type=&quot;vertex&quot;&gt;<br \/>\n&lt;!&#8211; GLSL\u5185\u90e8\u3067\u65e5\u672c\u8a9e\u30b3\u30e1\u30f3\u30c8\u3059\u308b\u3068\u5373\u843d\u3061\u3059\u308b &#8211;&gt;<br \/>\n&lt;!&#8211; varying \u6b21\u306e\u30b7\u30a7\u30fc\u30c0\u30fc\u3078\u53d7\u3051\u6e21\u3059 \/ \u524d\u306e\u30b7\u30a7\u30fc\u30c0\u304b\u3089\u53d7\u3051\u53d6\u308b\u5909\u6570 &#8211;&gt;<br \/>\n&lt;!&#8211; uniform Max\u304b\u3089\u76f4\u63a5\u53d7\u3051\u53d6\u308c\u308b\u5909\u6570\u3002param\u6307\u5b9a &#8211;&gt;<br \/>\n&lt;![CDATA[<\/p>\n<p>#version 120 <\/p>\n<p>varying vec2 texcoord0;<br \/>\nvarying vec2 texcoord1;<br \/>\nvarying vec2 texcoord2;<br \/>\nvarying vec2 texcoord3;<\/p>\n<p>void main(void)<br \/>\n{<br \/>\n\tgl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\t<\/p>\n<p>\ttexcoord0 = vec2(gl_TextureMatrix[0] * gl_MultiTexCoord0);<br \/>\n\ttexcoord1 = vec2(gl_TextureMatrix[1] * gl_MultiTexCoord1);<br \/>\n\ttexcoord2 = vec2(gl_TextureMatrix[2] * gl_MultiTexCoord2);<br \/>\n\ttexcoord3 = vec2(gl_TextureMatrix[3] * gl_MultiTexCoord3);<br \/>\n}<br \/>\n]]&gt;<br \/>\n\t\t&lt;\/program&gt;<br \/>\n\t\t&lt;program name=&quot;fp&quot; type=&quot;fragment&quot;&gt;<br \/>\n&lt;![CDATA[<\/p>\n<p>#version 120<\/p>\n<p>uniform vec4 a;<br \/>\nuniform vec4 b;<br \/>\nuniform vec4 c;<br \/>\nuniform vec4 d;<\/p>\n<p>varying vec2 texcoord0;<br \/>\nvarying vec2 texcoord1;<br \/>\nvarying vec2 texcoord2;<br \/>\nvarying vec2 texcoord3;<\/p>\n<p>uniform sampler2DRect tex0;<br \/>\nuniform sampler2DRect tex1;<br \/>\nuniform sampler2DRect tex2;<br \/>\nuniform sampler2DRect tex3;<\/p>\n<p>void main()<br \/>\n{<br \/>\n\tvec4 input0 = texture2DRect(tex0,texcoord0);<br \/>\n\tvec4 input1 = texture2DRect(tex1,texcoord1);<br \/>\n\tvec4 input2 = texture2DRect(tex2,texcoord2);<br \/>\n\tvec4 input3 = texture2DRect(tex3,texcoord3);<\/p>\n<p>\tgl_FragColor = a * input0 + b*input1 + c*input2 + d*input3;<\/p>\n<p>}<br \/>\n]]&gt;<br \/>\n\t\t&lt;\/program&gt;<br \/>\n\t&lt;\/language&gt;<br \/>\n&lt;\/jittershader&gt;<br \/>\n[\/c]<\/p>\n<h2>jit.gl.pix\u3068\u6bd4\u8f03<\/h2>\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3042\u308c\u3070\u3001jit.gl.pix\u3067\u51fa\u529b\u3057\u305f\u7d50\u679c\u3092jit.gl.*\u7cfb\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u30d0\u30a4\u30f3\u30c9\u3059\u308c\u3070\u540c\u69d8\u306e\u4e8b\u304c\u3067\u304d\u308b\u306e\u3067jit.gl.pix\u3067\u66f8\u3044\u305f\u65b9\u304c\u826f\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002Vertex Shader\u3084Geometry Shader\u3067\u306eVertex\u306e\u64cd\u4f5c\u3084\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u7d30\u304b\u3044\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u5834\u5408\u306b\u5fc5\u8981\u306b\u306a\u308b\u51e6\u7406\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30de\u30eb\u30c1\u30c6\u30af\u30b9\u30c1\u30e3 jit.gl.shader\u306e\u4e2d\u3067\u8907\u6570\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8abf\u3079\u307e\u3057\u305f\u3002Tutorial 43: A Slab of Your Very Own \u3053\u3061\u3089\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u65b9\u6cd5\u3067\u3059\u3002jit.gl.sla &hellip; <a href=\"https:\/\/mirror.boy.jp\/?p=1803\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">jit.gl.shader \/ GLSL \u3067\u30de\u30eb\u30c1\u30c6\u30af\u30b9\u30c1\u30e3 #maxmsp #jitter #glsl<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,81,79,78,45,26],"tags":[],"_links":{"self":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/1803"}],"collection":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1803"}],"version-history":[{"count":6,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/1803\/revisions"}],"predecessor-version":[{"id":1811,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/1803\/revisions\/1811"}],"wp:attachment":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}