summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/WorldVertexTransition_ps14.psh
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/WorldVertexTransition_ps14.psh
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/WorldVertexTransition_ps14.psh')
-rw-r--r--materialsystem/stdshaders/WorldVertexTransition_ps14.psh32
1 files changed, 32 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/WorldVertexTransition_ps14.psh b/materialsystem/stdshaders/WorldVertexTransition_ps14.psh
new file mode 100644
index 0000000..3ddfa02
--- /dev/null
+++ b/materialsystem/stdshaders/WorldVertexTransition_ps14.psh
@@ -0,0 +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)