Hacker News new | ask | show | jobs
by crabmusket 790 days ago
> The most important reason for my code structure is that I just like writing GLSL shaders! It's annoying that I need to set up Vite, TypeScript, Tailwind, React, etc. all so that I can write some shaders

That's what the frontend hype canal wants you to think!

Your frontend JS could just `fetch` the GLSL files from the backend instead of trying to compile them into your build process.

There are tradeoffs to this of course, but dealing with the complexity death star of JS tooling can be opted out of.