Shaders - Simple 4 - Textures
by bkenwright@xbdev.net
Minimal working shader assembly program (vertex shader assembly).
// code_1.vsh vs.1.0
// Transform our coordinates m4x4 oPos, v0, c0 // v0-Input coordinates
// Texture pass through mov oT0.xy, v7 // v7-Texture Input
The simple example uses the vertex register (v0,v7) and the constant registers (c0) to add transform and texture to the output.
 | Resources & Links |  |
• Details for the registers/layout shader assembly
|