[toc]
The remainder of this file's just a nice internal reference to mess about with various markdown features, both to remember they exist and to benchmark later renderers.
Reminder to future self - cmd + shift + f
on chrome will toggle cleaner view for tabs and stuff.
A checklist:
- an unchecked item
- a checked item
Это предложение на русском, чтобы убедиться, что оно работает.
Links: A web link and an internal link, and a promise to be fulfilled later.
a multi-line quote.
Three very cool emojis: 👉😎👉
table | test |
---|---|
cell A | cell B |
cell C | cell D |
vec3 render(vec3 pos, vec3 dir, vec2 seed){
vec3 summed = vec3(0.0);
vec3 factional = vec3(1.0);
for(int i=0;i<DEPTH;i++){
DistIden ray = raycast(pos, dir, FAR_PLANE);
// fall out criteria
if(ray.iden == SKY_MAT) {
if(i==0) return skyColour(dir);
break;
}
//update normal and pos
pos += ray.dist * dir;
vec3 nor = calcNormal(pos);
pos += nor * EPSILON1;
// loop unpacks to surface_1(direct_1 + surface_2(direct_2 + surface_3(direct_3 + ... ) ) )
factional *= renderMaterial(ray.iden);
summed += factional * worldLighting(pos, nor, seed);
dir = cosDir_tuv(nor, seed);
}
return summed;
}
Formatting uses katex.
Some elements
- item
- item
- item
- item