last bit of modif

This commit is contained in:
Lectem 2015-03-24 00:11:52 +01:00
parent 56556baaa7
commit 134f27f520
2 changed files with 25 additions and 14 deletions

View File

@ -26,7 +26,7 @@
dp4 outpos.z, projection[2], r0
dp4 outpos.w, projection[3], r0
; Set vertex color to white
; Set vertex color to white rgba => (1.0,1.0,1.0,1.0)
mov outclr, ones
end
.end

View File

@ -1,3 +1,14 @@
/**
* Hello Triangle example, made by Lectem
*
* Draws a white triangle using the 3DS GPU.
* This example should give you enough hints and links on how to use the GPU for basic non-textured rendering.
* Another version of this example will be made with colors.
*
* Thanks to smea, fincs, neobrain, xerpi and all those who helped me understand how the 3DS GPU works
*/
#include <3ds.h>
#include <stdio.h>
#include <stdlib.h>