Jump to content

  • Log In with Google      Sign In   
  • Create Account


Hornsj3

Member Since 05 Mar 2012
Offline Last Active Jul 16 2013 03:51 AM
-----

Posts I've Made

In Topic: light processing should be done in vertex or pixel shader

17 June 2013 - 03:48 AM

If you want per-pixel lighting you have to do it in the pixel shader.  

 

To do this you need at least the pixel normal and light direction vector for each light used.  You can calculate the light vector if you pass position and have the light positions as a uniform, and you must pass the normal vector as input as well.

 

Yes, what you describe is the standard way.


In Topic: Deferred rendering tutorials for DirectX 11?

05 August 2012 - 09:52 AM

There's at least one book with an example implementation. Practical Rendering and Computation with DirectX 11.

In Topic: Where can I download the source code of the book "GPU Pro"?

05 August 2012 - 08:53 AM

The author is pretty responsive. I've contacted him in the past.

In Topic: Terrainperformance - round 2

02 August 2012 - 10:47 AM

I'm going to remove this post because I don't think it adds any value.

In Topic: DirectX book

27 July 2012 - 05:07 PM

http://www.crcpress.com/product/isbn/9781568817200

PARTNERS