Sped up application load time by Enginestatistics allocation from heap to stack, Colour and rotation render test
This commit is contained in:
@ -38,8 +38,9 @@ void Start() {
|
||||
|
||||
// Create a cube node
|
||||
|
||||
cube = MI->Import("../build/SandboxApplication/Debug/Models/Cube.obj");
|
||||
cube = MI->Import("../build/SandboxApplication/Debug/Models/cube.obj");
|
||||
cube->renderable->material = new Material(*shader);
|
||||
cube->renderable->material->Color = glm::vec3(1.0f, 0.0f, 0.0f);
|
||||
|
||||
// What is in cube now ??
|
||||
std::cout << "mesh vertices: " << cube->renderable->mesh->vertices.size() << std::endl;
|
||||
|
Reference in New Issue
Block a user