Shine
Author: | wirmachenbunt |
Date: | 12 Jul, 2010 |
Category: | effect |
Credits: | adapted from GPU Gems 3 Book by wirmachenbunt |
Download
64bit
Description

- This isn't a ready to go effect but an example of how to achieve something like trapcode shine plugin (after effects)
- the trick is simple! render your scene twice
- first rendering contains your objects in front of the sun ( see gouraudshader in main patch)
- second rendering contains your objects in front of the sun, rendered in black (see raynagator)
- in the background of the black version is the 'sun' ....some blurry dot you can move
- the whole image will then be radial blurred and later added (additive) to the first rendering
- by moving the center of the radialblur and the position of your blurry object you can control the angle of the rays
- have fun experimenting with this technique
note from tonfilm: it is also better to send only the blur of pass two to the third pass. for that, set includeorig to 0 and change the last line of the pixelshader to:
return includorig ? (c + tex2D(Samp, TexC.xy + Center))*factor : c * factor;