mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
16 lines
428 B
Plaintext
16 lines
428 B
Plaintext
|
ps.1.1
|
||
|
|
||
|
;------------------------------------------------------------------------------
|
||
|
; c5 1, 1, 1, 1
|
||
|
;------------------------------------------------------------------------------
|
||
|
|
||
|
tex t0 ; Base color
|
||
|
|
||
|
mul r0, v0, v0 ; // Mask^2
|
||
|
mul r0, r0, r0 ; // Mask^4
|
||
|
sub r0, c5, r0 ; // 1.0 - Mask^4
|
||
|
|
||
|
mul r0.rgb, r0, t0 ; // * Flesh texture color
|
||
|
mul r0.a, r0.a, t0.a ; // * Flesh X-rated mask
|
||
|
mul r0.a, r0.a, v1.a ; // * Fresnel mask
|