Skip to content

Instantly share code, notes, and snippets.

View ognis1205's full-sized avatar
🐈‍⬛

Shingo OKAWA ognis1205

🐈‍⬛
View GitHub Profile
@CQCumbers
CQCumbers / fractal.c
Created February 7, 2021 20:42
N64 Fractal Path Tracer
#include <math.h>
#include <stdint.h>
#include <libdragon.h>
typedef double vec3[3];
const double epsl = 0.0000005;
// vector dot product
static double dot(vec3 v0, vec3 v1) {
double x2 = v0[0] * v1[0];