Teragam / JFXShader

Allows custom effect shaders in JavaFX
Apache License 2.0
33 stars 1 forks source link

Usage Example #1

Closed Birdasaur closed 1 year ago

Birdasaur commented 1 year ago

Hi. This is really cool work you are doing getting custom shaders to work . I'm trying to understand how I might use your ShaderEffect support in my own apps. I looked at your BlendShape classes in your samples directory... I'm not 100% sure how I might apply it to my own Nodes. Could you possibly make a barebones basic demo using your sample? ie... main() => scene => pane => node => ??? Apply BlendShape effect ??? => success?

I would be grateful and happy to help test it from there on.

Teragam commented 1 year ago

Hi. Yes, I'm happy to add a full example. I will probably use the wiki for this. More complex shader examples are already in the works, I will hopefully add those soon, with the next release.

Teragam commented 1 year ago

Update: I have added a simple example to the wiki and updated the README to include a small code snippet for using a custom effect shader.

Birdasaur commented 1 year ago

That example is exactly what I was hoping for. Thank you! I can't wait to try this!