{"id":143,"date":"2013-02-13T03:35:31","date_gmt":"2013-02-13T11:35:31","guid":{"rendered":"http:\/\/www.teamfizzgames.com\/Matt\/?p=143"},"modified":"2013-03-20T03:07:11","modified_gmt":"2013-03-20T10:07:11","slug":"this-is-not-a-pointlight","status":"publish","type":"post","link":"https:\/\/www.teamfizzgames.com\/Matt\/this-is-not-a-pointlight\/","title":{"rendered":"This Is Not A Pointlight"},"content":{"rendered":"<p>With the shift in game locales from being outdoors to indoors on a space station, my lighting model needs have shifted. \u00a0Previously I was using a single, dominant directional light as the main light source and shadow mapping off of that. \u00a0Now that doesn&#8217;t make sense, so I need a lot of pointlights instead. \u00a0When faced with the decision on how to approach that, I decided to implement a light pre-pass system in my forward renderer instead of a complete rewrite to a fully deferred system. \u00a0It&#8217;s generally been progressing well until I tried to actually store a pointlight into the lighting buffer and then sample that in place of the standard Phong lighting equation. \u00a0Silly me!<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.anguishgames.com\/download\/images\/NotALight.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" alt=\"\" src=\"http:\/\/www.anguishgames.com\/download\/images\/NotALight.png\" width=\"620\" height=\"481\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This is not a pointlight. \u00a0It&#8217;s supposed to be, but it isn&#8217;t. \u00a0Tomorrow, I&#8217;m hopeful I&#8217;ll get it working and be able to post some great new screen captures. \u00a0Right now, however, \u00a0life kind of sucks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the shift in game locales from being outdoors to indoors on a space station, my lighting model needs have shifted. \u00a0Previously I was using a single, dominant directional light as the main light source and shadow mapping off of that. \u00a0Now that doesn&#8217;t make sense, so I need a \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/www.teamfizzgames.com\/Matt\/this-is-not-a-pointlight\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2],"tags":[11],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-graphicsdev","tag-light-pre-pass"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p39ImV-2j","_links":{"self":[{"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":9,"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":220,"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/posts\/143\/revisions\/220"}],"wp:attachment":[{"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.teamfizzgames.com\/Matt\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}