bumpmapping.psh
来自「real-time(实时渲染技术DirectX)Media」· PSH 代码 · 共 17 行
PSH
17 行
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 + =
减小字号Ctrl + -
显示快捷键?