Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Implement shaders modding support #83

Open
DotWith opened this issue Dec 29, 2021 · 2 comments
Open

[ENHANCEMENT] Implement shaders modding support #83

DotWith opened this issue Dec 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@DotWith
Copy link
Contributor

DotWith commented Dec 29, 2021

Modifying shaders in runtime.
This would be widely expandable to modding custom levels, objects, etc. Other platforms that don't support shaders may need restrictions. The file extensions for shaders are as followed .frag and .vert.

@EliteMasterEric
Copy link
Collaborator

I investigated this at one point but never figured it out. It should be a matter of just opening a .frag and .vert yourself then loading it as a shader.

I did ask about it on the forums at one point and maybe the responses can help you.

https://community.openfl.org/t/how-to-load-gl-shaders-from-a-string/13298

@DotWith
Copy link
Contributor Author

DotWith commented Dec 30, 2021

This modification of the openfl shader seems to get the job done.
https://github.com/gedehari/IzzyEngine/tree/master/source/openfl/display

@EliteMasterEric EliteMasterEric added the enhancement New feature or request label Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants