Test implementation of phong shader

This commit is contained in:
2024-08-19 00:05:59 +01:00
parent afc10fb79a
commit 2bea7218db
4 changed files with 85 additions and 13 deletions

View File

@@ -33,6 +33,13 @@ struct phong_material {
f32 shininess;
};
typedef struct directional_light DirectionalLight;
struct directional_light {
V3f diffuse_intensity;
V3f specular_intensity;
V3f direction;
};
typedef struct model Model;
struct model {
LIST_TYPE(V3f) * vertices;