felixblaschke / shader Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I tried to run the provided red shader example with the following command:
shader --use-remote --to-dart
It prompted me this error:
Using remote-compiler: https://shaderc.felix-blaschke.de
Error while compiling: shaders/red-shader_sprv.dart
1: #version 320 es
2:
3: precision highp float;
4:
5: layout(location = 0) out vec4 fragColor;
6:
7: void main() {
8: fragColor = vec4(1.0, 0.0, 0.0, 1.0);
9: }
HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: application verification failure(handshake.cc:393))
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.8, on macOS 13.0.1 22A400 darwin-x64, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.76.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
• No issues found!
When checking the url, I saw that there seem to be a certificate issue:
Any workaround / fix ?
This is not an issue, I just want to tell you about flutter's great new feature!
Flutter provides a better way to compile GLSL into SPIR-V in the master
branch:
flutter/flutter#93498 (comment)
This project is great. If shaderc was compiled to WASM it could eliminate the server dependency entirely and still run cross platform:
https://pub.dev/packages/wasm
https://pub.dev/packages/wasm_interop
Looks like this project is doing something like that for web:
https://github.com/BabylonJS/Website/tree/master/build/Demos/WebGPU/lib
I just have one question/curiosity if I'm not mistaken, opengl is deprecated in IOs, and I believe Apple will kill at some point and just use their new Metal API. The question is, will the glsl code work on IOS? We will be able to run these shaders without depending on the OS?
Sorry for the newbie question, I'm starting with shaders :/
Hi, I am trying to use these shaders for image processing. I've read in the flutter documentation that sampler2D is a valid uniform as an input to the shader. However I cannot find a way to generate that uniform in dart since it is not just a double. Is there a specific type for that exposed in the API?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.