Add default material to model
This commit is contained in:
parent
ddfeba238d
commit
86138f838c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user