{"id":982,"date":"2012-08-11T20:22:07","date_gmt":"2012-08-11T17:22:07","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=982"},"modified":"2012-12-14T11:00:57","modified_gmt":"2012-12-14T08:00:57","slug":"fake-dynamic-tree-shadows","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/08\/11\/fake-dynamic-tree-shadows\/","title":{"rendered":"Fake Dynamic Tree Shadows"},"content":{"rendered":"<p><a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/fakeTreeShadows1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"983\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/08\/11\/fake-dynamic-tree-shadows\/fake_dynamic_tree_terrain_shadows_1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?fit=680%2C406&amp;ssl=1\" data-orig-size=\"680,406\" 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_dynamic_tree_terrain_shadows_1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?fit=300%2C179&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?fit=680%2C406&amp;ssl=1\" class=\"alignnone size-full wp-image-983\" title=\"fake_dynamic_tree_terrain_shadows_1\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?resize=680%2C406\" width=\"680\" height=\"406\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?resize=300%2C179&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>Tree shadows are created for terrain trees in Startup(),<br \/>\nwith adjustable strength, shadow shape, shadow color etc. (unity indie)<\/p>\n<p><strong>Ideas\/Todo:<\/strong><br \/>\n&#8211; Animated shadow? (based on terrain wind settings or just random..?)<br \/>\n&#8211; Different shadows for different trees (Get treesize, type..)<br \/>\n&#8211; Angled shadows (currently its directly from up..)<br \/>\n&#8211; Shadow rotation with day cycle?<br \/>\n&#8211; Splat shadow or darker terrain texture also.<\/p>\n<p><strong>Features:<\/strong><br \/>\n&#8211; Currently it only adds 9 drawcalls (doesnt matter how many trees you have)<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/fakeTreeShadows1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/fakeTreeShadows1\/<\/a><\/p>\n<p><strong>Download source:<\/strong><br \/>\nlater..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tree shadows are created for terrain trees in Startup(), with adjustable strength, shadow shape, shadow color etc. (unity indie) Ideas\/Todo: &#8211; Animated shadow? (based on terrain wind settings or just random..?) &#8211; Different shadows for different trees (Get treesize, type..) &#8211; Angled shadows (currently its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":983,"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,3],"tags":[133,7,14,40,168,17,276],"class_list":["post-982","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-casting","tag-fake","tag-shader","tag-shadow","tag-terrain","tag-tree","tag-trees"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/08\/fake_dynamic_tree_terrain_shadows_1.jpg?fit=680%2C406&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-fQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/982","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=982"}],"version-history":[{"count":6,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/982\/revisions"}],"predecessor-version":[{"id":991,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/982\/revisions\/991"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/983"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}