Make something shine in webgl & c3dl
I'm building a little starfield program using webgl and such.
Currently, my star are regular points. It looks nice from a very far distance, but pretty boring once you zoom into it.
How can I add things to开发者_如何学运维 make it look a bit more star-like? Like shine and shimmer and such.
This webgl lesson has something that might be close to what you want. It's a rendered gif, (rotating) with the option of rendering another identical gif over it (non-rotating) to provide the "twinkle" effect. Note, it's only got 50 stars so may perform quite badly with a star field.
You can see all the lessons here.
What you are looking for is called particle effects
http://www.mrspeaker.net/dev/parcycle/
精彩评论