summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/bik_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/bik_ps14.psh
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/bik_ps14.psh')
-rw-r--r--materialsystem/stdshaders/bik_ps14.psh22
1 files changed, 22 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/bik_ps14.psh b/materialsystem/stdshaders/bik_ps14.psh
new file mode 100644
index 0000000..03ba8e4
--- /dev/null
+++ b/materialsystem/stdshaders/bik_ps14.psh
@@ -0,0 +1,22 @@
+ps.1.4
+
+; premultiplied by .25 so that they fit in [-1,1] and use _x4 to scale back up.
+def c0, 0.29103088375, 0.3989486695, 0.0f, -0.217663765
+def c1, 0.29103088375, -0.20336914075, -0.09786224375, 0.132426262
+def c2, 0.29103088375, 0.0f, 0.5044555665, -0.2704172135
+
+def c3, 1.0f, 0.0f, 0.0f, 1.0f
+
+texld r0, t0 ; Y
+texld r1, t1 ; cR
+texld r2, t2 ; cB
+
+mov r3.x, r0 ; get Y into x
+mov r3.y, r1 ; get cR into y
++mov r3.w, c3.x ; set w to 1 for the 4th component of the dp4
+mov r3.z, r2 ; get cB into z
++mov r0.a, c3.a ; set output alpha to one. . .don't really care since we aren't alpha blending.
+
+dp4_x4_sat r0.r, r3, c0
+dp4_x4_sat r0.g, r3, c1
+dp4_x4_sat r0.b, r3, c2