1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-22 17:47:38 +08:00
hl2sdk/materialsystem/stdshaders/flesh_interior_blended_pass_dx8_ps11.psh
Nicholas Hastings e2781a0000 SDK sync.
2014-02-28 14:08:09 -05:00

16 lines
443 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