scalenormals.vsh

来自「real-time(实时渲染技术DirectX)Media」· VSH 代码 · 共 16 行

VSH
16
字号
vs.1.1

;scale the normal by the scalefactor in c5
mul r0, c5, v3

;add the vector to the original vertex position
add r0, r0, v0

;transform and output
dp4 oPos.x, r0, c0
dp4 oPos.y, r0, c1
dp4 oPos.z, r0, c2
dp4 oPos.w, r0, c3

mov oD0,  v5

⌨️ 快捷键说明

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