{"id":72,"date":"2014-11-26T19:28:47","date_gmt":"2014-11-26T19:28:47","guid":{"rendered":"http:\/\/www.missionctrlgames.com\/?p=72"},"modified":"2014-11-26T19:28:47","modified_gmt":"2014-11-26T19:28:47","slug":"shadows","status":"publish","type":"post","link":"http:\/\/www.missionctrlgames.com\/?p=72","title":{"rendered":"Shadows!"},"content":{"rendered":"<p><a href=\"http:\/\/www.missionctrlgames.com\/home\/wp-content\/uploads\/2014\/11\/B3VDXLdIEAEOtAv.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-73\" src=\"http:\/\/www.missionctrlgames.com\/home\/wp-content\/uploads\/2014\/11\/B3VDXLdIEAEOtAv.jpg\" alt=\"B3VDXLdIEAEOtAv\" width=\"640\" height=\"431\" srcset=\"http:\/\/www.missionctrlgames.com\/home\/wp-content\/uploads\/2014\/11\/B3VDXLdIEAEOtAv.jpg 640w, http:\/\/www.missionctrlgames.com\/home\/wp-content\/uploads\/2014\/11\/B3VDXLdIEAEOtAv-300x202.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>I&#8217;ve added shadows to my game engine! \u00a0OpenGL 2.0ES doesn&#8217;t support the standard method for shadows because you can&#8217;t access the depth buffer. \u00a0So, my method basically requires packing the depth value into a vec4 and creating a regular texture buffer instead of a depth buffer.<\/p>\n<p>Works great, but very expensive. \u00a0It will almost certainly need to be disabled for anything below the iPhone5S. It seems the real expensive part isn&#8217;t drawing all the geometry twice. It&#8217;s the process of drawing it into a texture that is the real bottleneck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve added shadows to my game engine! \u00a0OpenGL 2.0ES doesn&#8217;t support the standard method for shadows because you can&#8217;t access the depth buffer. \u00a0So, my method basically requires packing the depth value into a vec4 and creating a regular texture buffer instead of a depth buffer. Works great, but very expensive. \u00a0It will almost certainly <a class=\"read-more\" href=\"http:\/\/www.missionctrlgames.com\/?p=72\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-image","hentry","category-uncategorized","post_format-post-format-image"],"_links":{"self":[{"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":5,"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":78,"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions\/78"}],"wp:attachment":[{"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.missionctrlgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}