📄 ch10p1_simpleshader1.vsh
字号:
vs.1.0
// multiply (x,y,z) vertex (v0) by combined world/view/proj matrix
// (c0), and put the result into the vertex's final position (oPos).
m4x4 oPos , v0, c0
// the world/view/proj matrix takes up 4 constant slots - c0, c1, c2, and c3.
// but, we can store the color in the next constant slot - c4.
// put c4 into the first output register, which the default DirectGraphics
// pixel shader uses as the color.
mov oD0, c4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -