{"id":8,"date":"2008-01-05T02:48:46","date_gmt":"2008-01-04T15:48:46","guid":{"rendered":"http:\/\/www.gridbug.org\/~trevor\/wordpress\/2008\/01\/05\/the-new-lens-flare\/"},"modified":"2008-01-05T10:43:24","modified_gmt":"2008-01-04T23:43:24","slug":"the-new-lens-flare","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2008\/01\/05\/the-new-lens-flare\/","title":{"rendered":"The new lens flare"},"content":{"rendered":"

\"Bloom<\/p>\n

They say that bloom is the new lens flare.<\/p>\n

So I said to myself, who am I to fight Them? I mean, what with Their black helicopters and mind control rays and everything, I wouldn’t stand a chance..<\/p>\n

This is still a work in progress; the code is based on the algorithms discussed at Philip Rideout’s OpenGL Bloom tutorial<\/a>; working with pixel shaders (“fragment shaders”) is entirely new to me, so I’m learning quickly!<\/p>\n

The code is checked in to the subversion repository, but is not yet enabled. I need to set things up so that VectorStorm can figure out whether or not a particular computer is capable of doing this effect (requires a video card supporting OpenGL Shader Model 2), and if so, turn this on by default.. or if not, use the old renderer by default. Probably will require a little bit more work to set things up so that I can switch renderers while the game is running. I still refuse to display a “restart the game for your changes to take effect” screen.<\/p>\n

And now, time to get to bed. It’s nearly 3:00am. Amazing how time can fly when you’re staring at glowy things.<\/p>\n","protected":false},"excerpt":{"rendered":"

They say that bloom is the new lens flare. So I said to myself, who am I to fight Them? I mean, what with Their black helicopters and mind control rays and everything, I wouldn’t stand a chance.. This is still a work in progress; the code is based on the algorithms discussed at Philip…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[4,3],"tags":[14],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-8","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/8"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}