|
|
|
@ -329,8 +329,8 @@ loadScene(RenderState* rs) |
|
|
|
if (!pos_attrib || !normal_attrib) return false; |
|
|
|
if (!pos_attrib || !normal_attrib) return false; |
|
|
|
|
|
|
|
|
|
|
|
GLBufferToAttribMapping attrib_mappings[2] = { |
|
|
|
GLBufferToAttribMapping attrib_mappings[2] = { |
|
|
|
{ "position", nullptr, pos_attrib, texmesh.vertices }, |
|
|
|
{ "position", pos_attrib, texmesh.vertices }, |
|
|
|
{ "normal", nullptr, normal_attrib, texmesh.normals } |
|
|
|
{ "normal", normal_attrib, texmesh.normals } |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const u32 NUM_CUBES = 4; |
|
|
|
const u32 NUM_CUBES = 4; |
|
|
|
|