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

📄 simplefog.nvp

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