source-engine/materialsystem/stdshaders/flesh_interior_blended_pass_dx8_ps11.psh

16 lines
428 B
Plaintext
Raw Normal View History

2020-04-22 16:56:21 +00:00
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