aboutsummaryrefslogtreecommitdiff
path: root/mp/src/materialsystem/stdshaders/eyes_flashlight2_ps11.psh
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/materialsystem/stdshaders/eyes_flashlight2_ps11.psh')
-rw-r--r--mp/src/materialsystem/stdshaders/eyes_flashlight2_ps11.psh17
1 files changed, 17 insertions, 0 deletions
diff --git a/mp/src/materialsystem/stdshaders/eyes_flashlight2_ps11.psh b/mp/src/materialsystem/stdshaders/eyes_flashlight2_ps11.psh
new file mode 100644
index 00000000..3b02fbb3
--- /dev/null
+++ b/mp/src/materialsystem/stdshaders/eyes_flashlight2_ps11.psh
@@ -0,0 +1,17 @@
+ps.1.1
+
+;------------------------------------------------------------------------------
+; Draw stuff
+;------------------------------------------------------------------------------
+
+tex t0 ; Contains spotlight
+tex t1 ; Contains base texture
+tex t2 ; Normalize world pos to light
+tex t3 ; Sample iris
+
+dp3 r0, t2_bx2, v0_bx2 ; r0 = N dot L
+lrp r1.rgb, t3.a, t3, t1 ; r1 = lerp( baseColor, irisSample.xyz, irisSample.a )
+mul r0.rgb, r0_sat, r1 ; Saturate ( N dot L )* lerp
+mul r0.rgb, r0, v0.a ; *= attenuation
+mul_x2 r0.rgb, r0, t0 + ; *= 2 * spotlight
+mov r0.a, t1.a