blur.nvp
来自「游戏编程精华02-含有几十个游戏编程例子」· NVP 代码 · 共 28 行
NVP
28 行
/************************************************************************
Blur.nvp
This is a simple blur-shader: we simply average all alpha and color
values together.
Copyright (C) 1999, 2000 NVIDIA Corporation
*************************************************************************/
; Declare pixel shader version
ps.1.1
def c0, 0.5f, 0.5f, 0.5f, 0.5f
; get colors and alphas from all 4 texture stages
tex t0
tex t1
tex t2
tex t3
; and blend them all equally (using lrp vs. mad reduces the
; number of instructions from 4 to 3)
lrp r0, c0, t0, t1
lrp r1, c0, t2, t3
lrp r0, c0, r0, r1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?