Joe Ludwig 7309a5f13f Added many shader source files
This should include the latest version of every shader that was in the
2007 SDK. It also includes a smattering of debug shaders, both VR
distortion shaders, and other assorted shaders that will hopefully be
useful.

None of these new files are included in the game shader DLL project. If
you need to modify one of these shaders for use in your mod you will
need to rename it so that you don't collide with the version of that
shader that lives in stdshader_dx9.dll.
2013-12-23 15:00:03 -08:00

18 lines
594 B
Plaintext

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