thug/Code/Gfx/XBox/NX/PixelShader_ShadowBuffer.psh

12 lines
363 B
Plaintext
Raw Normal View History

2016-02-13 21:39:12 +00:00
; Shadow buffer pixel shader.
; On entry:
; c0 contains the base percentage of color (even in shadow),
; c1 contains the percentage of color that shadow affects.
xps.1.1
tex t3 ; get shadow from light
mul r1, c1, t3 ; Use the shadow buffer to affect the shadow portion of the color change
add r0, c0, r1 ; Add to the base color to get final color