Skip to content

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

2 participants