diff options
| author | Michael Sartain <[email protected]> | 2014-10-02 08:25:55 -0700 |
|---|---|---|
| committer | Michael Sartain <[email protected]> | 2014-10-02 08:25:55 -0700 |
| commit | 55ed12f8d1eb6887d348be03aee5573d44177ffb (patch) | |
| tree | 3686f7ca78c780cd9a3d367b79a9d9250c1be7c0 /mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh | |
| parent | * Added support for Visual C++ 2013 Express to VPC (diff) | |
| download | source-sdk-2013-55ed12f8d1eb6887d348be03aee5573d44177ffb.tar.xz source-sdk-2013-55ed12f8d1eb6887d348be03aee5573d44177ffb.zip | |
Updated the SDK with the latest code from the TF and HL2 branches.
Diffstat (limited to 'mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh')
| -rw-r--r-- | mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh b/mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh index 763a5d11..3ddfa02c 100644 --- a/mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh +++ b/mp/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh @@ -1,32 +1,32 @@ -; STATIC: "DETAIL" "0..1"
-; STATIC: "BLENDMODULATETEXTURE" "0..1"
-ps.1.4
-
-def c1, 3.0, -2.0, 0.5, 0.5
-
-texld r0, t0
-texld r1, t1
-texld r2, t2
-#if DETAIL
-texld r3, t3 ; detail
-#endif
-#if BLENDMODULATETEXTURE
-texld r4, t4 ; detail
-#endif
-
-#if BLEND_MODULATETEXTURE
-sub r5.a, v0.a, r4.g
-add_sat r5.a, r5.a, c1.a
-mad r6.a, c1.g, r5.a, c1.r
-mul r6.a, r6.a, r5.a
-mul r5.a, r6.a, r5.a
-#else
-mov_sat r5.a, v0.a
-#endif
-lrp r0, r5.a, r1, r0
-
-mul r0, r0, r2
-#if DETAIL
-mul_x2 r0.rgb, r0, r3
-#endif
-mul_x2 r0.rgb, c0, r0 ; * 2 * (overbrightFactor/2)
+; STATIC: "DETAIL" "0..1" +; STATIC: "BLENDMODULATETEXTURE" "0..1" +ps.1.4 + +def c1, 3.0, -2.0, 0.5, 0.5 + +texld r0, t0 +texld r1, t1 +texld r2, t2 +#if DETAIL +texld r3, t3 ; detail +#endif +#if BLENDMODULATETEXTURE +texld r4, t4 ; detail +#endif + +#if BLEND_MODULATETEXTURE +sub r5.a, v0.a, r4.g +add_sat r5.a, r5.a, c1.a +mad r6.a, c1.g, r5.a, c1.r +mul r6.a, r6.a, r5.a +mul r5.a, r6.a, r5.a +#else +mov_sat r5.a, v0.a +#endif +lrp r0, r5.a, r1, r0 + +mul r0, r0, r2 +#if DETAIL +mul_x2 r0.rgb, r0, r3 +#endif +mul_x2 r0.rgb, c0, r0 ; * 2 * (overbrightFactor/2) |