Show HN: textshader.com (textshader.com)
This is a small weekend project of mine inspired by shadertoy.com
It's a static single-page site hosted on GitHub pages so the website design is pretty barebones. I'm not a web developer so I mainly wanted to create a Cool Thing with my free time and not have to learn tons of front-end to do it.
I'd love to hear what people think about it and please post or send me any shaders you make! You can use the link button in the bottom right to share.
I hope that this gets more people interested in shaders because GPU programming is a pretty different paradigm and learning it has made me a better software engineer even though my current job doesn't touch it. That said, textshader only runs normal Javascript on the CPU so think of it like a simplified sandbox and not the real thing. I'd highly recommend checking out shadertoy to level up to the real deal too!
21 comments
[ 5.2 ms ] story [ 58.3 ms ] threadMy favorite example is asciicker by @MrGumix on twitter: http://asciicker.com/y6 (press q & e)
Full screen also looks great, I can imagine it being a screen saver.
How do I learn the basics of creating these kinds of shaders?
This is actually much simpler than "pushing pixels" because the shader outputs a value that is just directly mapped to a char to display on screen, which means I'm just using the browser's native text rendering to render the image.
I'm getting an "Error" when clicking the share button.
The full screen option looks amazing, but I missed it on my first few sessions of paying. Adding the text to the buttons might be more instructive than hiding it behind a tool tip.
Is the source available? Would be interesting to see under the hood too.
It looks like I got rate limited by pastebin for storing shaders so I'll have to go hunt down a non-free solution or host a backend myself to get it to work.
The source is just the single page, feel free to inspect and download it but ignore any bad coding standards you may see :)
I have a mini side project with some user generated content to save.
I ended up with good old S3. It’s not free, and it might require a server to facilitate stuff with the secret access key to write data. But it could be pennys with Lambda and S3 and AWSs metered billing and free tier.