mesh.SetIndexBuffer( indexBuffer );
//Add uniforms to the shader
- Property::Index backgroundColorIndex = shader.RegisterProperty( "uBackgroundColor", color );
- shader.AddUniformMapping( backgroundColorIndex, "uBackgroundColor" );
+ shader.RegisterProperty( "uBackgroundColor", color );
//Create the renderer
Renderer renderer = Renderer::New( mesh, material );