Add default material to model

This commit is contained in:
Abdelrahman Said 2024-08-18 22:26:01 +01:00
parent ddfeba238d
commit 86138f838c

View File

@ -39,6 +39,14 @@ int main(void) {
return TINY_EXIT_MODEL_LOAD_FAILED; return TINY_EXIT_MODEL_LOAD_FAILED;
} }
PhongMaterial material = {
.ambient = 0.1f,
.diffuse = 0.8f,
.specular = 0.1f,
.shininess = 0.5f,
};
obj.material = material;
load_shaders(); load_shaders();
clear_buffer(&(render.img), &bg); clear_buffer(&(render.img), &bg);