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

📄 blur.nvp

📁 游戏编程精华02-含有几十个游戏编程例子
💻 NVP
字号:
/************************************************************************
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -