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

Adding glsl support #99

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Conversation

dotlogix
Copy link
Contributor

@dotlogix dotlogix commented Sep 9, 2022

This PR adds GLSL support to this library. It is a 1:1 port based on the HLSL shader version with some slight adjustments.

A working example can be found here:
https://www.shadertoy.com/view/sttBz8

Solves #98

@Auburn
Copy link
Owner

Auburn commented Sep 9, 2022

Thanks! The example usage in the README.md looks to be a copy of the C++ example. Should it not be something more similar to mainImage() in the ShaderToy you linked?

@dotlogix
Copy link
Contributor Author

dotlogix commented Sep 9, 2022

It is valid glsl code and was copied from the HLSL example.
I guess you would never really want to use this library outside of compute shaders anyway. And else you can easily transform it to a fragment shader.

I could add the fragment shader as an additional example if you like but i wanted to keep it consistent to the HLSL shader version :)

@Auburn Auburn merged commit c30798a into Auburn:master Sep 9, 2022
@dotlogix dotlogix deleted the Features/GlslSupport branch September 9, 2022 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants