[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.12163722 [View]
File: 2.63 MB, 320x180, ezgif-6-901d0bd95998.gif [View same] [iqdb] [saucenao] [google]
12163722


vec3 mathMarch(vec3 startPos; vec3 dir)
{
vec3 pos = startPos;
for (int i = 0; i < MAX_STEPS; i++)
{
float dist = sdf_sphere(pos);
pos += dist*dir;
}
}


Hi /sci/ dying in the ass here trying to notate this mathematically. Not sure how to throw it in a sigma and can't think of way to re-write it recursively. Any tips?

Navigation
View posts[+24][+48][+96]