Sign in to follow this  
wangerpang

how to get different colors when using lighting

Recommended Posts

I am confused about the type of light and the type of materials. I use different type of light,such as Diffuse,Ambient etc, and set different type of materials, but the outcome was not I wanted! In brief, how to set ambient,diffuse,specular and material parameters to get I wanted colors. I want a function with one parameter, this input parameter is my target colors((1,1,1) for white effect;(0,1,1) for green effect etc). I think there must be someone who will tell me how to design this function, and explain the relations between the type of light and type of materials. Please! Thanks!

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