Jump to content
  • entries
  • comments
  • views

Will it work..

Sign in to follow this  


So I was thinking about a D3D application during a lecture today (the lecture was boring!).

My pixel and vertex shader book covers 5 different lighting models:

  • 'Basic' fixed-function style lighting
  • Cook-Torrance
  • Oren-Nayar
  • Ward
  • Ashikhmin-Shirley

    It doesn't seem to hard to find implementation of other, similar, models (e.g. Phong).

    But what I was thinking about is whether you could actually generate a scene where you could generically implement one of those 5 models.

    That is, the underlying scene/engine feeds in the same set of data (e.g. diffuse/specular/normals/normal-map/tangents etc..) and then just switch the VS/PS being used.

    The goal being that I could write a sample where you can actually compare the different lighting models in a constant environment - see exactly what they look like and how they behave.

    Could be interesting [smile]

  • Sign in to follow this  


    Recommended Comments

    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
    • Advertisement

    Important Information

    By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

    We are the game development community.

    Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

    Sign me up!