Pull to refresh

Show HN: Shader Lab, like Photoshop but for shaders (eng.basement.studio)

by ragojose 47 comments 160 points
Read article View on HN

47 comments

[−] elliottcarlson 25d ago
Nice interface -- I made something similar but for a specific game (Binding of Isaac) because it has a specific way of implementing shaders for mods. https://sublimnl.github.io/IsaacShaderStudio/
[−] onion2k 25d ago
A while ago (8 years in fact) I wanted to make something like this. I made a slightly half-assed React library that used twgl to overlay a shader on an element on a page (or a canvas for some effects). One thing I had was measuring where an element was on the page and then using absolute positioning to put a canvas over it so effects could expand beyond the confines of the element. I still think that has potential for some fun things but browsers aren't really fast enough to keep it in the right place with scrolling so it never works properly. https://react-neon.ooer.com/ + https://github.com/onion2k/react-neon

These new libraries are much better than anything I came up with.

[−] sph 25d ago
Doesn't seem to load for me except the side windows. Firefox/Linux. HN hug of death?

The design language screams vibe coded to me.

[−] felixthehat 25d ago
looks like a slopfork of the fairly new https://shaders.com - frustrating for them!
[−] glhast 25d ago
I started https://unicorn.studio (first of its kind for layer based shader composition) back in 2020! Thankful that I did because I actually had to learn GLSL the hard way. Not sure that I would have bothered if building it today.
[−] natdempk 25d ago
Is this lacking FPS caps or is something very unoptimized? Everything is smooth, but this website makes my computer run super hot and laptop fans spin up like nothing else does, even other shaders. (recent Chrome, recent MBP)
[−] mawadev 25d ago
That is so laggy, but the UI looks really cool!
[−] sva_ 25d ago
When I clicked Add Layer and then tried to select an image source, it managed to crash Firefox pretty consistently.

Submitted a bug report.

[−] hmmokidk 25d ago
Bookmarking for later. Really curious to explore this when the brain cells are back online in the AM.
[−] bobbies-treats 25d ago
Tough for anyone to want to play around with until performance is improved. It's neat though.
[−] paolatauru 23d ago
the binding of isaac use case is interesting bc thats where the context limit issue really bites. did you hit the ceiling on active effects or is there a lazy initialization trick you figured out
[−] realbigscrem 25d ago
Not to be mistaken for Unity Shaderlab: https://docs.unity.cn/Documentation/Manual/SL-Reference.html
[−] ohyoutravel 25d ago
Doesn’t work for me. Seems vibe coded.
[−] roxana_haidiner 24d ago
the UI looks really nice! keep it up!
[−] bauenblockchain 24d ago
looking good
[−] aguacaterojo 25d ago
V cool. Works in ff on mac for me. Maybe vibe coded but it's a spectrum. Probably in need of a bit of polish and a better performing example & maybe resolution switching. Basement Studio is legit I have bought their fonts in the past.

Floating windows are a little pointless but aesthetic choice or a one shot ui. FPS would be nice, also distinction between canvas and void. Video export works great.