A tiny software raymarcher that attempts to render "n-dimension" manofold insertions as an image appearing to be a non-euclidean 3-dimensional space. Written for the uqcs hackathon 2020. This repo is a mirror of:
https://github.com/ailrst/blackpink
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
655 B
23 lines
655 B
|
|
#include "types.h" |
|
#include "math.h" |
|
#include "vect.h" |
|
#include "distfuncs.h" |
|
#include "scene.h" |
|
|
|
#ifndef CAMH |
|
#define CAMH |
|
|
|
struct pixel_info march(struct ray *r, struct object *scene); |
|
Uint32 process_pixel(int, int); |
|
|
|
struct colour solid_col(struct object *s, struct ray *r); |
|
double solid_dist(struct solid *s, struct vec *v); |
|
void place(struct solid *v); |
|
struct vec * estimateNormal(struct vec *r, struct solid *sol); |
|
|
|
void manifoldstep(struct ray *r, double distance); |
|
void manifoldturn(struct ray *r, struct vec *v, double distance); |
|
void manifoldstepaxees(struct vec *pos, struct vec *dir, struct vec **lads, int numlads, double distance); |
|
|
|
#endif
|
|
|