Advertisement Jump to content
Sign in to follow this  

Method for getting an angelic effect

This topic is 1834 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, 

This might need to go into the beginner section, but I believe this is the place.


I want to create a sphere that exudes light from specific vertices. Some areas dark, and some areas shining light back out.


Here are my thoughts:

Use Nvidia's cg to create specific areas of refraction or reflection

Add various lights around the sphere


What I don't understand:

How to create custom lights (I'm using unity 3D)

-Something with random points of emission

-spot lights with short range and acute spot angle (multiple preferably from one light object)


Finally, what would be the most gpu efficient solution to creating an effect like this?


Share this post

Link to post
Share on other sites

I'm not sure you really want lights in this scenario. It sounds like the effect you're really after is God Rays (or Crepuscular Rays to the pedantic). Something like this:


These are often achieved a screen facing quad (billboard) with an appropriate texture on it and additive blending (see


In the case where you need it to be a little more 3D, you can make God Ray shafts out of long thin quads (a + shape in cross-section works quite well) they need to be additive blended and a texture to smooth out the edges helps. 

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!