📄 dependentgb.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 + -