aboutsummaryrefslogtreecommitdiff
path: root/sp/src/materialsystem/stdshaders/detail_ps11.psh
diff options
context:
space:
mode:
Diffstat (limited to 'sp/src/materialsystem/stdshaders/detail_ps11.psh')
-rw-r--r--sp/src/materialsystem/stdshaders/detail_ps11.psh12
1 files changed, 12 insertions, 0 deletions
diff --git a/sp/src/materialsystem/stdshaders/detail_ps11.psh b/sp/src/materialsystem/stdshaders/detail_ps11.psh
new file mode 100644
index 00000000..fb5916ab
--- /dev/null
+++ b/sp/src/materialsystem/stdshaders/detail_ps11.psh
@@ -0,0 +1,12 @@
+ps.1.1
+
+tex t0
+tex t1
+
+mul r0.rgb, t0, v0 +
+
+; handle distance fade
+sub r0.a, t0.a, 1-v0.a
+
+sub r0.a, r0.a, t1_bias.a
+cnd r0.a, r0.a, c0.a, c1.a