{"id":1629,"date":"2013-01-31T00:52:18","date_gmt":"2013-01-30T21:52:18","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=1629"},"modified":"2013-01-31T00:58:50","modified_gmt":"2013-01-30T21:58:50","slug":"fake-spotlight-shadows","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2013\/01\/31\/fake-spotlight-shadows\/","title":{"rendered":"Fake SpotLight Shadows"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"fake_spotlight_shadow1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow1.jpg?resize=680%2C437\" width=\"680\" height=\"437\" \/><\/a><\/p>\n<p>Testing one idea for fake spotlight shadows. In the image, spotlight is at the wall, cylinder column is there to block light. (shadowmap size 1024&#215;1024)<\/p>\n<p><strong>Current version info:<\/strong><br \/>\n&#8211; Have to build the shadow texture manually..(later should be possible to do it all in script)<br \/>\n&#8211; Its static, atleast for now (if the cylinder moves..shadow doesnt update, unless you build new shadow map..)<br \/>\n&#8211; Might work on pointlights also<br \/>\n&#8211; more later..<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\ncoming later..<\/p>\n<p>&#8212;<\/p>\n<p><strong>Image#2:<\/strong> Shadow map size 16&#215;16, creates nice soft shadow (should be small enough to be updated in realtime &#8211; even with raycasting?)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow2.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1630\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/01\/31\/fake-spotlight-shadows\/fake_spotlight_shadow2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow2.jpg?fit=680%2C437&amp;ssl=1\" data-orig-size=\"680,437\" 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=\"fake_spotlight_shadow2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow2.jpg?fit=680%2C437&amp;ssl=1\" class=\"alignnone size-full wp-image-1630\" alt=\"fake_spotlight_shadow2\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow2.jpg?resize=680%2C437\" width=\"680\" height=\"437\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow2.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow2.jpg?resize=300%2C192&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing one idea for fake spotlight shadows. In the image, spotlight is at the wall, cylinder column is there to block light. (shadowmap size 1024&#215;1024) Current version info: &#8211; Have to build the shadow texture manually..(later should be possible to do it all in script) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1631,"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":[4,3],"tags":[7,205,52,40,385,411],"class_list":["post-1629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-fake","tag-indie","tag-light","tag-shadow","tag-soft","tag-spotlight"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/01\/fake_spotlight_shadow1.jpg?fit=680%2C437&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-qh","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1629","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=1629"}],"version-history":[{"count":5,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1629\/revisions"}],"predecessor-version":[{"id":1633,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1629\/revisions\/1633"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/1631"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}