pointlight.psh

来自「real-time(实时渲染技术DirectX)Media」· PSH 代码 · 共 15 行

PSH
15
字号
ps.1.1

;Needed for the complement
def c0, 1.0, 1.0, 1.0, 1.0

;This is the light texture
tex t0

;This is the same texture, but this shader only uses the
;alpha channel
tex t1

sub r0, c0, t0
sub r0, r0, t1.a
mul r0, r0, v0

⌨️ 快捷键说明

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