Sign in to follow this  
codyz

Need help for shading

Recommended Posts

a direction light vector and a normal vector has been calculated, light[3],normal[dimen][dimen][3]; if i use pixels[dimen][dimen][3],and glDrawPixels (dimen, dimen, GL_RGB, GL_UNSIGNED_BYTE, (unsigned char *)pixels) method to shading.i want to know how to do it.

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