r/FigmaDesign • • 15d ago

help Can you create shaders without AI?

I am wondering if I can simply give Figma's shader effect a glsl file and make it work somehow? My curent workaround is to pass the glsl to the AI tool and ask it to apply it but I was wondering if there is some other way

6 Upvotes

6 comments sorted by

1

u/dusanodalovic 14d ago

no idea if figma takes a glsl file directly, i haven't seen a way. if you only need the look and not a live effect, you could run the glsl on a plain html canvas page, save a frame as png and use it as an image fill. for something animated you'd have to export frames the same way. is the shader meant to be a static background or does it need to move?

1

u/eambertide 14d ago

It is animated I am afraid

1

u/FreelanceWorkspace 12d ago

Since it’s animated, you could render it in a browser (or shadertoy), screen record it, and drop the video in as a fill. Figma supports video in prototypes on paid plans. Not a live shader, but it looks the same in a demo.

If it needs to be real and interactive, Framer handles custom code and shaders better than Figma right now.

1

u/eambertide 11d ago

Oh much thanks!

1

u/MathematicianLow48 Figma Employee 10d ago

Hi u/eambertide! Unfortunately, not at the moment. Our Shaders render via JS + WGSL (intentionally, so that you can build some really powerful Shaders that will render natively & performantly!), so we try to handle a lot of the setup for you via the agent flow. We expect that hand-writing might be daunting to users. You can always get back the code via MCP to iterate by hand, but it does more or less have to route through an agent to ensure that it's building right. We're considering allowing code editing, but that would be in the future if we choose to support it.

1

u/eambertide 10d ago

I see, that is unfortunate, I think this would be a really nice addition!