New Shader: Diffuse+Spec+Normal+Alpha

Posted in 3D, Softimage

Here is an updated version of the shader I’ve been using. The 3 point lights are now using world coordinates instead of camera coordinates, and it now has support for a separate alpha map (I may look into getting it to pull the alpha from the diffuse map’s alpha channel, but since I use this shader for previewing only it isn’t a priority) .

Please note: You still have to flip the V coordinate for your texture projection.

Direct X Shaders

Download Link for DirectX Shader, 3 lights

CGFX Shader

Download Link for CGFX Shader, 4 lights

3 Comments

  1. wailingmonkey
    November 4, 2008

    awesome!

    Thanks so much for posting this. :)

  2. Michael Taylor
    November 4, 2008

    You’re welcome.
    ^_^V

  3. killzone
    July 30, 2010

    OMG i was looking for this all over the net, man you are the best. Thanks Michael