{"author_name":"mirosurabu","cat":"LD #14 - Advancing Wall of Doom - 2009","comments":[{"author_name":"jph","time":"April 19, 2009 12:21 pm","epoch":1240161660,"text":"humm,. can&#8217;t you do it with a simple alpha fade,. or colour shift?  I have used both to good effect,. you also could draw a big sprite to fill the screen and fade it in or fade all the rest out,. . .","spam":"N"},{"author_name":"mathias","time":"April 19, 2009 12:28 pm","epoch":1240162080,"text":"Well, with opengl it would be something like this in the fragment shader, I guess:","spam":"N"}],"epoch":1240160640,"likes":0,"metadata":{"p_key":"73498","p_author":"mirosurabu","p_authorkey":"510298","p_urlkey":"109320","p_title":"Step 14: HLSL. Writing pixel shader effect.","p_cat":"LD #14 - Advancing Wall of Doom - 2009","p_event":"LD14","p_time":"1240160640","p_likes":"0","p_comments":"2","p_status":"UPD5","us_key":"510298","us_name":"mirosurabu","us_username":"mirosurabu","event_start":"1239926400","event_key":"90","event_name":"LD14"},"text":"<p>Construct doesn&#8217;t come with proper fade transition, so I thought about writing my own. Construct uses HLSL for effects, so I thought it&#8217;s a good chance to learn a bit about shader programming.<\/p>\n <p>It was a failure (given the deadline pressure). I just gave up and decided not to use any transitions.<\/p>\n <p>If by any chance anyone here is familiar with HLSL and knows or has an HLSL snippet which performs fade-away fade-in transition that would be great.<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/failure\/\" rel=\"tag\">Failure<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/hlsl\/\" rel=\"tag\">HLSL<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/shaders\/\" rel=\"tag\">shaders<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/tigs\/\" rel=\"tag\">tigs<\/a><\/p>","time":"April 19th, 2009 12:04 pm","title":"Step 14: HLSL. Writing pixel shader effect."}