Initial commit.

This commit is contained in:
Jim Gray
2013-04-04 14:32:05 -07:00
parent ba5c81da32
commit d71d53e8ec
2180 changed files with 1393544 additions and 1 deletions

38
code/x_shaders/dlight.psh Normal file
View File

@@ -0,0 +1,38 @@
xps.1.1
tex t0 ; base map
tex t1 ; normal map
tex t2 ; ranged point light vector
tex t3 ; tangent space vector
#include "../win32/shader_constants.h"
; dot product bump and cube maps
dp3 r1.rgb, t1_bx2, t3_bx2
; factor in falloff
mul r0.rgb, r1.rgb, t2.a
; factor in the light color
mul r0.rgb, r0.rgb, c[CP_DIFFUSE_COLOR]
; factor in base texture
mul r0, r0, t0
xfc zero, zero, r0, zero, zero, zero, zero