Изменение материала программным путем
This commit is contained in:
parent
94cbecf491
commit
3f9c3c3bb8
|
@ -99,6 +99,8 @@ int main(void)
|
|||
Scene scene = loadOBJtoScene("../resources/models/blob.obj", "../resources/models/", "../resources/textures/");
|
||||
scene.root.e_scale() = glm::vec3(0.01);
|
||||
scene.root.e_position().z = 1;
|
||||
scene.models.begin()->material.kd = {0.5,0.5,0.5};
|
||||
scene.models.begin()->material.ka = {0.2,0.2,0.2};
|
||||
|
||||
// Установка цвета очистки буфера цвета
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
|
|
Loading…
Reference in New Issue