PDA

View Full Version : How to use special effects to show texture?



kurt09
09-21-2009, 07:27 AM
I wish to use fade in and fade out effects to show a picture.
How could I realize this special effects?
--------------
Any help would be much appricated,

Thanks

matrem
09-21-2009, 09:03 AM
You can easily use a textured quad, displayed with a shader program.
You just have to implement the fade effect in your fragment shader, and send time via an uniform.

kurt09
09-22-2009, 12:08 AM
You can easily use a textured quad, displayed with a shader program.
You just have to implement the fade effect in your fragment shader, and send time via an uniform.

Can you give me more detail about it?
A simple example is more appreciated.
Thanks~