{"id":393,"date":"2012-01-02T21:22:18","date_gmt":"2012-01-02T18:22:18","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=393"},"modified":"2013-08-15T21:59:37","modified_gmt":"2013-08-15T18:59:37","slug":"fake-2d-realtime-shadows-unit","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/01\/02\/fake-2d-realtime-shadows-unit\/","title":{"rendered":"Fake 2D Realtime Shadows Shader (for unity free version)"},"content":{"rendered":"<p><a href=\"http:\/\/unitycoder.com\/upload\/demos\/mShadowShaderFake1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"394\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/01\/02\/fake-2d-realtime-shadows-unit\/mshadow2d1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?fit=680%2C515&amp;ssl=1\" data-orig-size=\"680,515\" 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;}\" data-image-title=\"mShadow2d1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?fit=300%2C227&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?fit=680%2C515&amp;ssl=1\" class=\"alignnone size-full wp-image-394\" title=\"mShadow2d1\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?resize=680%2C515\" width=\"680\" height=\"515\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?resize=300%2C227&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>Testing 2D realtime shadows (shader based), works with unity free version.<br \/>\nMore tests later.. (in that screenshot, there is 1 spotlight and objects which cast shadow behind them)<\/p>\n<p>Current version kind of works with spheres..need to adjust shader for other shapes.<\/p>\n<p><strong>Webplayer:<\/strong> (added 14.01.2012)<br \/>\n<a href=\"http:\/\/unitycoder.com\/upload\/demos\/mShadowShaderFake1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/mShadowShaderFake1\/<\/a><\/p>\n<p><strong>Source:<\/strong> (webplayer scene + shader sources)<br \/>\n<a title=\"Download\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=76&amp;uid=un1t3c0d5r\" target=\"_blank\">mFakeShadowShader.unitypackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing 2D realtime shadows (shader based), works with unity free version. More tests later.. (in that screenshot, there is 1 spotlight and objects which cast shadow behind them) Current version kind of works with spheres..need to adjust shader for other shapes. Webplayer: (added 14.01.2012) http:\/\/unitycoder.com\/upload\/demos\/mShadowShaderFake1\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":394,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,13,3],"tags":[7,48,14,40],"class_list":["post-393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-shaders","category-unity3d","tag-fake","tag-realtime","tag-shader","tag-shadow"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mShadow2d1.jpg?fit=680%2C515&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-6l","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/393","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=393"}],"version-history":[{"count":16,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":2292,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/393\/revisions\/2292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/394"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}