source-engine/materialsystem/stdshaders/flesh_interior_blended_pass_dx8_ps11.psh
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

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