Setting Up a Sunlight

Started by
0 comments, last by swiftcoder 9 years, 1 month ago

Hi Everyone,

I'm working on setting up a Sunlight for my 3D Game.

Up to now the best way I found was to enable a GL_Light and place it in the sky at a certain distance, and have it be placed outside of my main glRotatef and glTranslatef so that like a skyboxe it remains constant.

It's fun but i'm sure there are better ways of doing it.

Anybody would like to share their ideas on creating a cool SunLight?

Thanks!

Advertisement

It may be more in-depth than you are currently looking for, but Iñigo Quilez has some interesting resources on achieving nice-looking outdoor lighting.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement