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

📄 ch10p1_simpleshader1.vsh

📁 游戏开发特殊技巧-special.effects.game.programming
💻 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 + -