Sign in to follow this  

directional light system

Recommended Posts

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=""]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.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this