Using pixel shaders in Flutter

487 views
Skip to first unread message

Raju Bitter

unread,
Oct 5, 2016, 12:01:27 PM10/5/16
to Flutter Dev
Is it possible to use pixel shaders in Flutter? I'm looking into how it would be possible to create something like OpenFrame (capable of rendering pixelshaders as wall art) using Dart.
http://openframe.io/
http://editor.thebookofshaders.com/

Thanks, Raju

Adam Barth

unread,
Oct 5, 2016, 12:47:39 PM10/5/16
to Raju Bitter, Flutter Dev
We don't currently expose GLSL, but it's something we've thought about and are interested in doing eventually.  We still have a bunch of work we need to do to complete bread-and-butter features, like right-to-left layout and accessibility, which we'll probably want to do first.

Adam


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raju Bitter

unread,
Oct 10, 2016, 11:19:06 AM10/10/16
to Flutter Dev
Thanks, Adam. Good to know. And agree with you, makes sense to work on other features first.

Raju Bitter

unread,
Oct 10, 2016, 2:45:02 PM10/10/16
to Flutter Dev
Found the Github issue, posting the link here as a reference for other people interested in that feature:
https://github.com/flutter/flutter/issues/179

Michael Francis

unread,
Oct 11, 2016, 5:34:48 PM10/11/16
to Flutter Dev
I have pondering the feasibility of a Dart to GLSL compiler.

Raju Bitter

unread,
Oct 11, 2016, 6:39:44 PM10/11/16
to Flutter Dev
Hi Michael,

Do you mean a Dart UI framework rendering to WebGL? Or compiling a Dart function to a pixelshader?

Last year I worked on a project which has a JS to GLSL compiler, using the Acorn JS parser (https://github.com/ternjs/acorn). The architect of that platform created an improved version of the framework, where the full browser UI is rendered in WebGL. Check this demo (still alpha quality), but shows the idea.
https://makepad.github.io/makepad.html

Open the examples node, click on `shiny.js`, and then the run icon above the code editor. You'll see buttons rendering in the preview pane, where the button background is rendered using the pixelstyle property (gradient for border, pixelshader for background):
- Raju
Reply all
Reply to author
Forward
0 new messages