{"id":5088,"date":"2019-10-01T22:18:45","date_gmt":"2019-10-01T14:18:45","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5088"},"modified":"2019-10-01T22:18:45","modified_gmt":"2019-10-01T14:18:45","slug":"basic-ray-marching-shader","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2019\/10\/01\/basic-ray-marching-shader\/","title":{"rendered":"Basic Ray Marching Shader"},"content":{"rendered":"\n<p>Converted this <a rel=\"noreferrer noopener\" aria-label=\"raymarching for dummies (opens in a new tab)\" href=\"https:\/\/www.youtube.com\/watch?v=PGtv-dBi2wE\" target=\"_blank\">ray marching for dummies<\/a>-shader into unity.<br><br><strong>Shader Source:<\/strong><br><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Shaders\/2D\/Special\/RayMarching.shader\" target=\"_blank\">https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Shaders\/2D\/Special\/RayMarching.shader<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"218\" height=\"187\" data-attachment-id=\"5089\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2019\/10\/01\/basic-ray-marching-shader\/unity-raymarching-shader\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/10\/unity-raymarching-shader.gif?fit=218%2C187&amp;ssl=1\" data-orig-size=\"218,187\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"unity-raymarching-shader\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/10\/unity-raymarching-shader.gif?fit=218%2C187&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/10\/unity-raymarching-shader.gif?resize=218%2C187&#038;ssl=1\" alt=\"\" class=\"wp-image-5089\"\/><figcaption>Raymarching shader assigned into material on a unity quad primitive mesh<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Converted this ray marching for dummies-shader into unity. Shader Source:https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Shaders\/2D\/Special\/RayMarching.shader<\/p>\n","protected":false},"author":1,"featured_media":5089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13],"tags":[1133,14],"class_list":["post-5088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shaders","tag-raymarching","tag-shader"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/10\/unity-raymarching-shader.gif?fit=218%2C187&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1k4","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5088"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5088\/revisions"}],"predecessor-version":[{"id":5090,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5088\/revisions\/5090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5089"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}