Step 14: HLSL. Writing pixel shader effect.
Construct doesn’t come with proper fade transition, so I thought about writing my own. Construct uses HLSL for effects, so I thought it’s a good chance to learn a bit about shader programming.
It was a failure (given the deadline pressure). I just gave up and decided not to use any transitions.
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.
Comments
jph
19. Apr 2009 · 17:21 UTC
humm,. can’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,. . .
mathias
19. Apr 2009 · 17:28 UTC
Well, with opengl it would be something like this in the fragment shader, I guess: