• Advertisement
Sign in to follow this  

Rendering the Sun

This topic is 4618 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

In Direct3D, light sources, specifically point light are invisible entities that emits light on other objects. How do you render the Sun, given that it is a light source but also is visible with radiance?

Share this post


Link to post
Share on other sites
Advertisement
You probably don't want to use a dynamic light for something like the sun that's fairly static. Precomputing the light would be a better idea, using lightmaps or something similar. It depends on your situation of course.
If your sun is a large sphere, then you can specify a different material for the sun, and set an emmisive colour for it (That'll make the texture show up, it won't actually emmit light into the scene), and you'll probably want to disable lighting while you render it. You can then position a light at the center of the sphere, and set it's attributes.

Share this post


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

  • Advertisement