PROJECTIVE TEXTURE MAPPING and PER PIXEL SPOTLIGHT SHADERS

I created a series of shaders designed to create a HLSL spotlight/ flashlight.
These stem from a side project that I have lost motivation for. Since there
have been several requests for some texture projection examples on the forum,
maybe this will help someone.

The examples were written in Lite-c, but could be rewritten in c-script quite
easily. The version I used in creating these examples was A7.06. You will need
support for PS 1.1 and VS 2.0 to run these examples.

The first four deal with creating a spotlight with "per pixel lighting" (PPL).
Its not texture projection, but I incuded these is because it is a simpler,
faster spotlight method which would also make a good fallback method for slower
machines.

The second four deal with creating a spotlight with "projective texture mapping" (PT).
The examples also demonstrate a colored texture projected onto a models surface.

EXAMPLE 1: PPL SPOTLIGHT WITH DIFFUSE AND SPECULAR
EXAMPLE 2: PPL SPOTLIGHT WITH NORMAL MAPPING
EXAMPLE 3: PPL SPOTLIGHT WITH SHADOW MAPPING
EXAMPLE 4: PPL SPOTLIGHT WITH NORMAL AND SHADOW MAPPING

EXAMPLE 5: PT SPOTLIGHT WITH DIFFUSE AND SPECULAR
EXAMPLE 6: PT SPOTLIGHT WITH WITH NORMAL MAPPING
EXAMPLE 7: PT SPOTLIGHT WITH WITH SHADOW MAPPING
EXAMPLE 8: PT SPOTLIGHT WITH WITH NORMAL AND SHADOW MAPPING

IMPORTANT: In order to keep the file size small, I have removed the models from
all the examples except the first. So you will need to copy the two models from
the first folder into the other example folders in order to run those examples.

I would appreciate any feedback on any issues you might find, so I can fix them
in case I decide to post this package at the Acknex Resource site.

Thanks!

9MB Rapidshare Link
9MB FileFront Link


Not two, not one.