hl2_src-leak-2017/src/materialsystem/stdshaders/WorldVertexTransition_ps14.psh
BotoX 60f625f414 import hl2_src from full.7z
source: magnet:?xt=urn:btih:21DDA6847DDE983F2F8063739249D2D1D09A5DDA
2020-12-25 16:26:23 +01:00

33 lines
546 B
Plaintext

; STATIC: "DETAIL" "0..1"
; STATIC: "BLENDMODULATETEXTURE" "0..1"
ps.1.4
def c1, 3.0, -2.0, 0.5, 0.5
texld r0, t0
texld r1, t1
texld r2, t2
#if DETAIL
texld r3, t3 ; detail
#endif
#if BLENDMODULATETEXTURE
texld r4, t4 ; detail
#endif
#if BLEND_MODULATETEXTURE
sub r5.a, v0.a, r4.g
add_sat r5.a, r5.a, c1.a
mad r6.a, c1.g, r5.a, c1.r
mul r6.a, r6.a, r5.a
mul r5.a, r6.a, r5.a
#else
mov_sat r5.a, v0.a
#endif
lrp r0, r5.a, r1, r0
mul r0, r0, r2
#if DETAIL
mul_x2 r0.rgb, r0, r3
#endif
mul_x2 r0.rgb, c0, r0 ; * 2 * (overbrightFactor/2)