Closed hogsy closed 3 years ago
Goes in hand with the changes introduced earlier for the shaders.
.program
May depend on a layer around PLMesh or PLModel to incorporate the changes.
Material* material = Engine::Resources()->LoadMaterial("materials/example.material");
(default.program) { "gl3": { "vertPath":"shaders/gl3/default.vert", "fragPath":"shaders/gl3/default.frag" } } (example.material) { "shaderProgram":"shaders/default.program", (use the default shader program) "properties": [ "diffuse":"materials/example.png", "specular":"materials/example_s.png", "exponent":0.5 ] }
Goes in hand with the changes introduced earlier for the shaders.
.program
May depend on a layer around PLMesh or PLModel to incorporate the changes.
API Example
Example