|
|
@ -15,7 +15,7 @@ |
|
|
|
#define SHADOWGATHER(tex,coord) step(coord.z, textureGather(tex, coord.xy)) |
|
|
|
#define SHADOWGATHER(tex,coord) step(coord.z, textureGather(tex, coord.xy)) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if FILTER_MODE == 0 |
|
|
|
#if FILTER_MODE == 10 |
|
|
|
#define GETSHADOW Shadow_Nearest |
|
|
|
#define GETSHADOW Shadow_Nearest |
|
|
|
#define KERNEL 1.0 |
|
|
|
#define KERNEL 1.0 |
|
|
|
#elif FILTER_MODE == 1 |
|
|
|
#elif FILTER_MODE == 1 |
|
|
@ -36,7 +36,7 @@ |
|
|
|
#define SHADOWCOMPARE(tex,coord) step(coord.z, texture2DProj(tex, coord).r) |
|
|
|
#define SHADOWCOMPARE(tex,coord) step(coord.z, texture2DProj(tex, coord).r) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if FILTER_MODE == 0 |
|
|
|
#if FILTER_MODE == 10 |
|
|
|
#define GETSHADOW Shadow_DoShadowCompare |
|
|
|
#define GETSHADOW Shadow_DoShadowCompare |
|
|
|
#define KERNEL 1.0 |
|
|
|
#define KERNEL 1.0 |
|
|
|
#elif FILTER_MODE == 1 |
|
|
|
#elif FILTER_MODE == 1 |
|
|
@ -51,7 +51,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if FILTER_MODE == 2 |
|
|
|
#if (FILTER_MODE == 2) |
|
|
|
#define GETSHADOW Shadow_DoDither_2x2 |
|
|
|
#define GETSHADOW Shadow_DoDither_2x2 |
|
|
|
#define KERNEL 1.0 |
|
|
|
#define KERNEL 1.0 |
|
|
|
#elif FILTER_MODE == 3 |
|
|
|
#elif FILTER_MODE == 3 |
|
|
|