add basic test texture
This commit is contained in:
@@ -161,6 +161,41 @@ static const float cube_vertices[] =
|
||||
1.0f,1.0f, -1.0f, 1.0f, 0,1,0, 0,1,
|
||||
};
|
||||
|
||||
///position xyz, unused w, normal, uv
|
||||
static const float cube_vertices_textured[] =
|
||||
{
|
||||
-1.0f, -1.0f, 1.0f, 1.0f, 0,0,1, 0.75,0.25,//0//back
|
||||
1.0f, -1.0f, 1.0f, 1.0f, 0,0,1, 1,0.25 ,//1
|
||||
1.0f, 1.0f, 1.0f, 1.0f, 0,0,1, 1,0,//2
|
||||
-1.0f, 1.0f, 1.0f, 1.0f, 0,0,1, 0.75,0,//3
|
||||
|
||||
-1.0f, -1.0f, -1.0f, 1.0f, 0,0,-1, 0.5,0.25,//4//front
|
||||
1.0f, -1.0f, -1.0f, 1.0f, 0,0,-1, 0.25,0.25,//5
|
||||
1.0f, 1.0f, -1.0f, 1.0f, 0,0,-1, 0.25,0,//6
|
||||
-1.0f, 1.0f, -1.0f, 1.0f, 0,0,-1, 0.5,0,//7
|
||||
|
||||
-1.0f, -1.0f, -1.0f, 1.0f, -1,0,0, 0.5,0,//Right
|
||||
-1.0f, 1.0f, -1.0f, 1.0f, -1,0,0, 0.75,0,
|
||||
-1.0f, 1.0f, 1.0f, 1.0f, -1,0,0, 0.75,0.25,
|
||||
-1.0f, -1.0f, 1.0f, 1.0f, -1,0,0, 0.5,0.25,
|
||||
|
||||
1.0f, -1.0f, -1.0f, 1.0f, 1,0,0, 0.25,0.5,//Left
|
||||
1.0f, 1.0f, -1.0f, 1.0f, 1,0,0, 0.25,0.25,
|
||||
1.0f, 1.0f, 1.0f, 1.0f, 1,0,0, 0.,.25,
|
||||
1.0f, -1.0f, 1.0f, 1.0f, 1,0,0, 0,.5,
|
||||
|
||||
-1.0f, -1.0f, -1.0f, 1.0f, 0,-1,0, 0.25,0.5,//bottom
|
||||
-1.0f, -1.0f, 1.0f, 1.0f, 0,-1,0, 0.25,0.25,
|
||||
1.0f, -1.0f, 1.0f, 1.0f, 0,-1,0, 0.5,0.25,
|
||||
1.0f,-1.0f, -1.0f, 1.0f, 0,-1,0, 0.5,0.5,
|
||||
|
||||
-1.0f, 1.0f, -1.0f, 1.0f, 0,1,0, 0,0,//top
|
||||
-1.0f, 1.0f, 1.0f, 1.0f, 0,1,0, 0,0.25,
|
||||
1.0f, 1.0f, 1.0f, 1.0f, 0,1,0, 0.25,0.25,
|
||||
1.0f,1.0f, -1.0f, 1.0f, 0,1,0, 0.25,0,
|
||||
};
|
||||
|
||||
|
||||
|
||||
///position xyz, unused w, normal, uv
|
||||
static const float cube_vertices2[] =
|
||||
|
||||
Reference in New Issue
Block a user