{"id":5533,"date":"2022-04-25T18:42:17","date_gmt":"2022-04-25T15:42:17","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5533"},"modified":"2022-04-25T18:42:52","modified_gmt":"2022-04-25T15:42:52","slug":"sources-fog-of-war-effect","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2022\/04\/25\/sources-fog-of-war-effect\/","title":{"rendered":"(Sources) Fog Of War &#8211; effect"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2022\/04\/fog-of-war-1.gif?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"513\" height=\"278\" data-attachment-id=\"5534\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2022\/04\/25\/sources-fog-of-war-effect\/fog-of-war-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2022\/04\/fog-of-war-1.gif?fit=513%2C278&amp;ssl=1\" data-orig-size=\"513,278\" 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=\"fog-of-war-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2022\/04\/fog-of-war-1.gif?fit=513%2C278&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2022\/04\/fog-of-war-1.gif?resize=513%2C278&#038;ssl=1\" alt=\"\" class=\"wp-image-5534\"\/><\/a><\/figure>\n\n\n\n<p>Finally uploaded this old fog of war test project from <a rel=\"noreferrer noopener\" href=\"https:\/\/unitycoder.com\/blog\/2014\/10\/16\/2d-fog-of-war-unity\/\" target=\"_blank\">https:\/\/unitycoder.com\/blog\/2014\/10\/16\/2d-fog-of-war-unity\/<\/a><\/p>\n\n\n\n<p>Its raycast + vertex color based effect. (not really optimized, as it linecasts each vertex right now..)<\/p>\n\n\n\n<p><strong>Sources:<\/strong><br><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/unitycoder\/FogOfWar\" target=\"_blank\">https:\/\/github.com\/unitycoder\/FogOfWar<\/a><\/p>\n\n\n\n<p>Cleaning up the project and upgrading from 4.x:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/xH02Z5E_Dc8?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Finally uploaded this old fog of war test project from https:\/\/unitycoder.com\/blog\/2014\/10\/16\/2d-fog-of-war-unity\/ Its raycast + vertex color based effect. (not really optimized, as it linecasts each vertex right now..) Sources:https:\/\/github.com\/unitycoder\/FogOfWar Cleaning up the project and upgrading from 4.x:<\/p>\n","protected":false},"author":1,"featured_media":5534,"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":[1],"tags":[663,98,33,172],"class_list":["post-5533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-fog-of-war","tag-raycast","tag-vertex","tag-visibility"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2022\/04\/fog-of-war-1.gif?fit=513%2C278&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1rf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5533","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=5533"}],"version-history":[{"count":3,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5533\/revisions"}],"predecessor-version":[{"id":5537,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5533\/revisions\/5537"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5534"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}