mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
12 lines
363 B
Plaintext
12 lines
363 B
Plaintext
; 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
|