Switch to using tangent normals

This commit is contained in:
2024-08-24 00:48:46 +01:00
parent 798100f138
commit 1f5f01d73f
3 changed files with 4 additions and 4 deletions

View File

@@ -33,14 +33,14 @@ int main(void) {
}
Model obj = load_obj_file(arena, RESOURCE("head.obj"), RESOURCE("head.pnm"),
RESOURCE("head_nm.pnm"));
RESOURCE("head_nm_tangent.pnm"));
if (IS_INVALID_MODEL(obj)) {
return TINY_EXIT_MODEL_LOAD_FAILED;
}
PhongMaterial material = {
.ambient = 0.1f,
.diffuse = 1.2f,
.ambient = 0.3f,
.diffuse = 1.0f,
.specular = 0.1f,
.shininess = 0.8f,
};