35 lines
591 B
Plaintext
35 lines
591 B
Plaintext
xps.1.1
|
|
|
|
; tex0 is the intensity texture
|
|
; tex1+ are the plasma textures
|
|
|
|
tex t0
|
|
tex t1
|
|
tex t2
|
|
tex t3
|
|
|
|
|
|
add r1, t1.a, t2.a ; add the plasmas together
|
|
add r1, r1, t3.a ; add the plasmas together
|
|
mul r1, r1, c0 ; multiple by blob intensity
|
|
|
|
|
|
; Render first plasma only, at full (x3) intensity
|
|
;add r1, t1, t1
|
|
;add r1, r1, t1
|
|
;mov r1, t1
|
|
|
|
|
|
|
|
mul r0.rgb, t0, r1 ; normal fog mode; multiply intensity by plasma
|
|
|
|
add r0.rgb, r0.rgb, c1.rgb ; add fade to yellow
|
|
|
|
|
|
;mov r0, t0 ; just render the intensity texture
|
|
|
|
mov r0.a, 1-zero ; set alpha to full
|
|
|
|
|
|
|