Skip to content

gaussianBlur.frag does not run under webassembly #4

Open
@EvenOAndersen

Description

@EvenOAndersen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions