5 ms·
For(float e,I,a,w,x,g,h;I++<90.;o+=.01-.02/exp(max(s,e)*3e3)/h){vec3 p=vec3((
- andy99 3y agoHot on the heels of https://news.ycombinator.com/item?id=39339249 https://news.ycombinator.com/item?id=39339249 Is there an explanation or an exposition that shows how these work and how one goes about making one?
- jsheard 3y agoCheck out Inigo Quilez's channel, he's a veteran of these distance field sizecoding demos and has some good explainers. https://www.youtube.com/playlist?list=PL0EpikNmjs2CYUMePMGh3IjjP4tQlYqji https://www.youtube.com/playlist?list=PL0EpikNmjs2CYUMePMGh3... You can also check out his Shadertoy page which has hundreds of examples with live-editable source code. https://www.shadertoy.com/user/iq https://www.shadertoy.com/user/iq
- p0w3n3d 3y agoAll I got was ?SYNTAX ERROR READY.
- SushiHippie 3y agohttps://twigl.app?ol=true&ss=-NqUk6pcpkcFek1iupHp https://twigl.app?ol=true&ss=-NqUk6pcpkcFek1iupHp
- p0w3n3d 3y agoThanks!
- olliej 3y agoMaybe gwbasic? :D
- nuc1e0n 3y agoIt's a C dialect of some kind, but not turbo c as it doesn't have a dot function. Perhaps GLSL?
- snotrockets 3y agoYes, it's GLSL.
- olliej 3y agoI was joking - I believe the example error message was one from one of the old basic interpreters (I just honestly can’t recall if it was qbasic, c64 basic or what
- nuc1e0n 3y agoI reckon you could port this to run on c64 basic quite easily. You'd probably only need to swap the rotate2d and dot functions with something else for it to work. It'd make for a fun weekend project. As for how fast it would run on the other hand ... ;)
- Donaldzibe 3y ago[flagged]