simplefog.nvp

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

NVP
29
字号
;
; Pixel shader 



#include "SimpleFog.h"

; Declare pixel shader version 1.0
ps.1.0


tex t0              ; decal texture



mul r0, t0, v0        ; v0 = ambient + diffuse for front facing illumination

; add height-based fog (oD1 == v1 in the pixel shader) 
; mult fog color by fog fac and add it in

mad r0, v1, c[CP_HEIGHT_FOG_COLOR], r0







⌨️ 快捷键说明

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