Sign in to follow this  

General Lighting Techniques

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

Simple question? I was wondering, do most people calculate the normals of objects outside the shader and let the shader handle the coloring, calculate and handle the coloring outside of the shader, or do everything inside the shader? I'm not looking for the quickest or prettiest result, just something in between.

Share this post


Link to post
Share on other sites
In all the examples Ive seen so far the program supplies the vertex normals to the shader, usually you work on an object format from a 3d software wich exports the normals as well anyway. All the rotation / scaling / transformation is usually done with the gpu though. Hope I answered your question. Important thing is to get it working though, can always optimize things later :) imho

Stefan

Share this post


Link to post
Share on other sites

This topic is 3630 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.

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