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

Genetate GLSL code in the client #101

Open
NicolasRannou opened this issue Nov 22, 2017 · 0 comments
Open

Genetate GLSL code in the client #101

NicolasRannou opened this issue Nov 22, 2017 · 0 comments

Comments

@NicolasRannou
Copy link

NicolasRannou commented Nov 22, 2017

Hi,

It is possible to generate/compile GLSL shaders on the client at run time with GLSLIFY?

I'd like to build custom shaders in real time, based on user's input, but it seems GLSLIFY needs to run before that a build/time?

A practical example if that I may want to use interpolation method X or Y.
Instead of having a statement such as:

if (condition) {
  interpolationX
else {
  interpolationY
}

I'd like to just have:

interpolationX (or interpolationY depending on the user's input)

The reason is mainly to reduce the number of else/if statements in the code in order to make it run as fast as possible.

Thanks!

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

No branches or pull requests

1 participant