⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shadow_ps14.psh

📁 hl2 source code. Do not use it illegal.
💻 PSH
字号:
ps.1.4

def c0, 1.0f, 1.0f, 1.0f, 1.0f
def c2, 0.2f, 0.2f, 0.2f, 0.2f

texld r0, t0
texld r1, t1
texld r2, t2
texld r3, t3
texld r4, t4

// The mul has to happen here first because we overflow otherwise
mul r0.r, r0.a, c2.a
mad r0.r, r1.a, c2.a, r0.r
mad r0.r, r2.a, c2.a, r0.r
mad r0.r, r3.a, c2.a, r0.r
mad r0.r, r4.a, c2.a, r0.r

; To accomplish shadow fading, subtract vertex alpha from texture alpha
; color channel isn't used...
sub_sat r0.a, r0.r, v0.a

; Blend between white and the constant color...
lrp r0.rgba, 1-r0.a, c0, c1




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -