Sign in to follow this  

directional light system

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

hello.
I have developed a per pixel phong shader for render some architectural models.
The problem is that i think that for simple architectural models is simplest and fast use a simple shader with directional lights.
May be?
I read this article :[url="http://www.3drender.com/light/3point.html"]link[/url]
and i ask if for you i can implement a light sistem of tree light (key, fill and back) with directional lights.
I would create somethings like sun.
thanks.

Share this post


Link to post
Share on other sites
Having 3 lights instead of one can easily be done by just adding the light from each light source before multiplying with the diffuse color.

If you just want to show models without too much work, you can use an engine with light sources built in as an HLSL function call. Then you will get many types of light sources without any extra work.

Share this post


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