dependentgb.nvp

来自「游戏编程精华02-含有几十个游戏编程例子」· NVP 代码 · 共 33 行

NVP
33
字号
;
; 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 + =
减小字号Ctrl + -
显示快捷键?