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

📄 bumpmapping.psh

📁 real-time(实时渲染技术DirectX)Media
💻 PSH
字号:
ps.1.1

;Ambient light
def c0, 0.01, 0.01, 0.01, 0.0

;Light Intensity
def c1, 0.5, 0.5, 0.5, 0.0

;This is the normal map
tex t0

;Get the dot product of the diffuse and the normal map
dp3_sat r0, t0_bx2, v0_bx2

;Multiply by the intensity and add the ambient
mad_sat r0, r0, c1, c0

⌨️ 快捷键说明

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