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

gaussianBlur.frag does not run under webassembly #4

Open
EvenOAndersen opened this issue Sep 12, 2024 · 0 comments
Open

gaussianBlur.frag does not run under webassembly #4

EvenOAndersen opened this issue Sep 12, 2024 · 0 comments

Comments

@EvenOAndersen
Copy link

gaussianBlur.frag does not run under webassembly
there is a complaint about non-constant initializers in the for loops, can be fixed like this:

float i = -k;
for(int ii = 0; ii<1000000; ++ii) {
    if (i > k) break;
    sum += exp(-0.5 * pow(i / sigma, 2.0)) / (sqrtDoublePI * sigma);
    ++i;
}

Similar for the other for loop

Seen in the qtdoc/car-configurator demo. The demo runs anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant