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

📄 dependentgb.nvp

📁 游戏编程精华02-含有几十个游戏编程例子
💻 NVP
字号:
;
; DependentGB.nvp
;
; Pixel shader for doing the logic of the Game of Life
;  based on the accumulated neighbor and source texel
;  information accumulated in the green and blue color
;  channels on a previous pass.
;
; Set t0 to source field of averaged pixel values
;   which is the accumulation of neighbor & source pixel info
;
; Set t1 to "rules" texture which determines the resulting
;   pixel


#include "PixelConstants.h"




; Declare pixel shader version
ps.1.1


; get colors from all 4 texture stages
tex t0                   ; source texture
texreg2gb t1, t0         ; looup into t1 based on t0 green and blue


; move result of dependent lookup into output
mov r0, t1

⌨️ 快捷键说明

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