summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/WorldVertexTransition_Editor.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_Editor.psh
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/WorldVertexTransition_Editor.psh')
-rw-r--r--materialsystem/stdshaders/WorldVertexTransition_Editor.psh10
1 files changed, 10 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/WorldVertexTransition_Editor.psh b/materialsystem/stdshaders/WorldVertexTransition_Editor.psh
new file mode 100644
index 0000000..a818128
--- /dev/null
+++ b/materialsystem/stdshaders/WorldVertexTransition_Editor.psh
@@ -0,0 +1,10 @@
+ps.1.1
+
+tex t0 ; basetexture
+tex t1 ; basetexture2
+tex t2 ; lightmap
+
+; The editor uses vertex alpha as the blend factor
+lrp r0, 1-v0.a, t1, t0
+mul r0, r0, t2
+mul_x2 r0.rgb, c0, r0 ; * 2 * (overbrightFactor/2)