• API
• FAQ
• Tools
• Trends
• Archive
daily pastebin goal
72%
SHARE
TWEET

# Untitled

szymski Aug 13th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f, -0.5f), vec2f(0f, 1f), vec3f(0f, -1f, 0f), vec4f(1f));
2.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, -0.5f, -0.5f), vec2f(1f, 1f), vec3f(0f, -1f, 0f), vec4f(1f));
3.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, -0.5f, -0.5f + 1f), vec2f(1f, 0f), vec3f(0f, -1f, 0f), vec4f(1f));
4.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f, -0.5f + 1f), vec2f(0f, 0f), vec3f(0f, -1f, 0f), vec4f(1f));
5.
6.         mesh.indices ~= [ 0, 1, 2, 0, 2, 3 ];
7.
8.         mesh.vertices ~= Vertex(vec3f(-0.5f, 0.5f, -0.5f), vec2f(0f, 1f), vec3f(0f, 1f, 0f), vec4f(1f));
9.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, 0.5f, -0.5f), vec2f(1f, 1f), vec3f(0f, 1f, 0f), vec4f(1f));
10.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, 0.5f, -0.5f + 1f), vec2f(1f, 0f), vec3f(0f, 1f, 0f), vec4f(1f));
11.         mesh.vertices ~= Vertex(vec3f(-0.5f, 0.5f, -0.5f + 1f), vec2f(0f, 0f), vec3f(0f, 1f, 0f), vec4f(1f));
12.
13.         mesh.indices ~= [ 4, 5, 6, 4, 6, 7 ];
14.
15.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f + 1f, -0.5f), vec2f(0f, 1f), vec3f(-1f, 0f, 0f), vec4f(1f));
16.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f + 1f, -0.5f + 1f), vec2f(1f, 1f), vec3f(-1f, 0f, 0f), vec4f(1f));
17.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f, -0.5f + 1f), vec2f(1f, 0f), vec3f(-1f, 0f, 0f), vec4f(1f));
18.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f, -0.5f), vec2f(0f, 0f), vec3f(-1f, 0f, 0f), vec4f(1f));
19.
20.         mesh.indices ~= [ 8, 9, 10, 8, 10, 11 ];
21.
22.         mesh.vertices ~= Vertex(vec3f(0.5f, -0.5f + 1f, -0.5f), vec2f(0f, 1f), vec3f(1f, 0f, 0f), vec4f(1f));
23.         mesh.vertices ~= Vertex(vec3f(0.5f, -0.5f + 1f, -0.5f + 1f), vec2f(1f, 1f), vec3f(1f, 0f, 0f), vec4f(1f));
24.         mesh.vertices ~= Vertex(vec3f(0.5f, -0.5f, -0.5f + 1f), vec2f(1f, 0f), vec3f(1f, 0f, 0f), vec4f(1f));
25.         mesh.vertices ~= Vertex(vec3f(0.5f, -0.5f, -0.5f), vec2f(0f, 0f), vec3f(1f, 0f, 0f), vec4f(1f));
26.
27.         mesh.indices ~= [ 12, 13, 14, 12, 14, 15 ];
28.
29.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f + 1f, -0.5f), vec2f(0f, 1f), vec3f(0f, 0f, -1f), vec4f(1f));
30.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, -0.5f + 1f, -0.5f), vec2f(1f, 1f), vec3f(0f, 0f, -1f), vec4f(1f));
31.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, -0.5f, -0.5f), vec2f(1f, 0f), vec3f(0f, 0f, -1f), vec4f(1f));
32.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f, -0.5f), vec2f(0f, 0f), vec3f(0f, 0f, -1f), vec4f(1f));
33.
34.         mesh.indices ~= [ 16, 17, 18, 16, 18, 19 ];
35.
36.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f + 1f, -0.5f + 1f), vec2f(0f, 1f), vec3f(0f, 0f, 1f), vec4f(1f));
37.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, -0.5f + 1f, -0.5f + 1f), vec2f(1f, 1f), vec3f(0f, 0f, 1f), vec4f(1f));
38.         mesh.vertices ~= Vertex(vec3f(-0.5f + 1f, -0.5f, -0.5f + 1f), vec2f(1f, 0f), vec3f(0f, 0f, 1f), vec4f(1f));
39.         mesh.vertices ~= Vertex(vec3f(-0.5f, -0.5f, -0.5f + 1f), vec2f(0f, 0f), vec3f(0f, 0f, 1f), vec4f(1f));
40.
41.         mesh.indices ~= [ 20, 21, 22, 20, 22, 23 ];
RAW Paste Data
Top