|
|
|
@ -348,11 +348,11 @@ struct colour yeet_brown(struct ray *ray, struct object* obj) {
@@ -348,11 +348,11 @@ struct colour yeet_brown(struct ray *ray, struct object* obj) {
|
|
|
|
|
*/ |
|
|
|
|
struct object* new_tree(struct vec* position, double rotation, double scale) { |
|
|
|
|
struct object* tree = malloc(2 * sizeof(struct object)); |
|
|
|
|
struct object trunk = new_object(position, rotation, scale, sdf_phat_vert_line, yeet_brown); |
|
|
|
|
struct object trunk = new_object(position, rotation, scale, sdf_phat_vert_line, yeet_pho); |
|
|
|
|
trunk.base_col = (struct colour){.r = 210, .g = 105, .b = 30, .sp = CS_RGB}; |
|
|
|
|
|
|
|
|
|
struct vec* leaf_pos = add_vec_ip(new_vec3(0, -1.5, 0), position); |
|
|
|
|
struct object leaves = new_object(leaf_pos, rotation, scale, sdf_3ellipsoid, yeet_green); |
|
|
|
|
struct object leaves = new_object(leaf_pos, rotation, scale, sdf_3ellipsoid, yeet_pho); |
|
|
|
|
leaves.base_col = (struct colour){.r = 0, .g = 255, .b = 0, .sp = CS_RGB}; |
|
|
|
|
leaves.base_col = (struct colour){.r = random() % 20, .g = 50 + random() % 100, .b = random() % 20, .sp = CS_RGB}; |
|
|
|
|
|
|
|
|
|