ShaderEditor icon indicating copy to clipboard operation
ShaderEditor copied to clipboard

Place to Share Shaders

Open baffo32 opened this issue 8 years ago • 5 comments

It would be nice to see other people's shaders somewhere.

Here is a rolling sphere I made on my SGH-T399 this past week or two: https://gist.github.com/309a5df6e9d1c34cfda55292d5d4acc0

baffo32 avatar Aug 29 '16 12:08 baffo32

Very cool shader!

And yes, sharing shaders across users and devices is something I wanted for a long time. But it's not easy because it would require running a back end and (some) kind of user management. We'd need to transfer not just source code but textures and settings (resolution) as well. Then there would have to be some kind of (shader) browser in the app. And there are incompatibilities between GPU's. What runs on one device can fail on others (for example, your shader does not run on a Nexus 6 because INF = 1.0 / 0.0 does not compile: division by zero).

So yes, I totally want this but I'm afraid it'll take some time.

markusfisch avatar Aug 29 '16 15:08 markusfisch

What about integrating an API like github gists? It might solve the backend and user management problems.

JFonS avatar Aug 29 '16 15:08 JFonS

Yes, maybe that'd be an option and a cool one too! Will check.

markusfisch avatar Aug 29 '16 15:08 markusfisch

Gists are a super easy API... don't even need to be signed in to post one, so it's literally one HTTP request. I used them for another project so I could help if you like...

odbol avatar Sep 20 '16 03:09 odbol

Sounds good! Contributions are always welcome!

I'm on vacation right now and haven't had the time to check this out yet. But it really sounds like it would fit.

Implementing the UI, maybe a browser for the shaders, is possibly the biggest part I guess.

markusfisch avatar Sep 20 '16 08:09 markusfisch