diff options
Diffstat (limited to 'mp/src/materialsystem/stdshaders/UnlitGeneric_LightingOnly.vsh')
| -rw-r--r-- | mp/src/materialsystem/stdshaders/UnlitGeneric_LightingOnly.vsh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mp/src/materialsystem/stdshaders/UnlitGeneric_LightingOnly.vsh b/mp/src/materialsystem/stdshaders/UnlitGeneric_LightingOnly.vsh new file mode 100644 index 00000000..6361c811 --- /dev/null +++ b/mp/src/materialsystem/stdshaders/UnlitGeneric_LightingOnly.vsh @@ -0,0 +1,21 @@ +vs.1.1 + +# DYNAMIC: "DOWATERFOG" "0..1" +# DYNAMIC: "SKINNING" "0..1" + +#include "macros.vsh" + +&AllocateRegister( \$worldPos ); +&SkinPosition( $worldPos ); + +; Transform the position from world to view space +dp4 oPos.x, $worldPos, $cViewProj0 +dp4 oPos.y, $worldPos, $cViewProj1 +dp4 oPos.z, $worldPos, $cViewProj2 +dp4 oPos.w, $worldPos, $cViewProj3 + +&FreeRegister( \$worldPos ); + +mov oD0, $cOne + + |